Solved

DropDownList inside UpdatePanel won't show

Posted on 2011-09-20
6
352 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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

687 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