Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DropDownList inside UpdatePanel won't show

Posted on 2011-09-20
6
Medium Priority
?
355 Views
Last Modified: 2012-05-12
I have a dropdownlist inside an update-panel,

It's visible property is set to false and then I change it to true later but it will not show the dropdown?
<tr id="trTopics" runat="server" visible="false" >
	        <td colspan="3" class="PSRFItem">
		        <asp:UpdatePanel ID="updTopics" runat="server" >
			        <ContentTemplate>
				        <asp:Label ID="lblTopicError" runat="server" Visible="false" ForeColor="Red" CssClass="PIFErrorMessage" Text="You must specify the speakers intended topic." /><br />
				        <span style="color: Red; font-weight:bold; font-size: 18px;">*</span>
				        <asp:Label ID="lblTopic" runat="server" Text="What Topic would you like the speaker to present?" /><br />
				        <asp:DropDownList ID="ddlTopics" runat="server" AutoPostBack="True" />
			        </ContentTemplate>
		        </asp:UpdatePanel>
	        </td>
        </tr>

Open in new window

0
Comment
Question by:meiprogram
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:Bill Nolan
ID: 36571754
From your code it looks like its 'Visible' property is NOT set to false, though the enclosing table's visibility is false.  Not sure if you noticed this or not, but if you are simply setting the DropDownList visibility to true it won't matter.
0
 
LVL 9

Expert Comment

by:jkofte
ID: 36572491
the problem is with your tr tag. it is the parent to the dropdownlist, so when it is not visible, everything inside it will not be visible.

change

<tr id="trTopics" runat="server" visible="false" >

Open in new window


to

<tr id="trTopics" runat="server">

Open in new window

0
 

Author Comment

by:meiprogram
ID: 36573765
I know it will work if I take the visible out of the tr tag.  I need to hide that row and show it only in certain cases depending on the users input on other controls
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Accepted Solution

by:
meiprogram earned 0 total points
ID: 36574100
I figured it out.

I had a drop-down-list that was depending on the user selection would show the tr tag.  I had this control in an update-panel as well, once I removed that update-panel all worked.
0
 

Author Closing Comment

by:meiprogram
ID: 36597744
Figured it out myself.
0
 
LVL 7

Expert Comment

by:Bill Nolan
ID: 36576031
Obviously users will not be able to make it visible again via the list.

Btw, your original problem description was inaccurate.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question