try this and if it does not solves your problem please post your master page code it may help
Beware of bugs in the above code; I have only proved it correct, not tried it.
-------------------------------------------------------
Contact-Info:Adils.kiet@gmail.com
DropDownList AutoPostBack is set to "True" and is now inside UpdatePanel. The Panel is still not changing from Hidden to Visible OnSelectedIndexChanged. Is the Panel inside of this UpdatePanel coded correctly?
Hi ARJ DESIGNS,
Your markup code is good and you need to modify your code. Try my code and runs it. It is working perfectly at my side.
Protected Sub DropDownList1_SelectedIndexChanged(sender As Object, e As EventArgs)
Dim selectedText = DropDownList1.SelectedItem.Text
If selectedText.ToLower() = "hyperlink" Then
Panel1.Visible = True
Else
Panel1.Visible = False
End If
End Sub
Attach your iis instance in visual studio and load the page or run the application in debug mode.
It will then show which object is null in visual studio.
==================================
Thanks,
Keshav Kumar.
------------------------------------------------------
Please mark the reply as "Mark As Answer " if this post answers your query.
Beware of bugs in the above code; I have only proved it correct, not tried it.
-------------------------------------------------------
Contact-Info:Adils.kiet@gmail.com
Jugg3rNaut
Member
474 Points
109 Posts
Re: How do I hide/show asp:Panel on asp:DropDownList OnSelectedIndexChanged?
Jan 15, 2013 03:36 AM|LINK
try this and if it does not solves your problem please post your master page code it may help-------------------------------------------------------
Contact-Info:Adils.kiet@gmail.com
matifnadeem
Contributor
4954 Points
1154 Posts
Re: How do I hide/show asp:Panel on asp:DropDownList OnSelectedIndexChanged?
Jan 15, 2013 05:00 AM|LINK
Hi ARJ DESIGNS,
Your markup code is good and you need to modify your code. Try my code and runs it. It is working perfectly at my side.
Let me know if any query still remains.
Cheers
M Atif Nadeem
Mark as Answer if you got right thing
Read my blog | Follow me on LinkedIn
ARJ DESIGNS
Member
163 Points
139 Posts
Re: How do I hide/show asp:Panel on asp:DropDownList OnSelectedIndexChanged?
Jan 16, 2013 09:45 PM|LINK
I did a test. Code works on a aspx page but fires a error with Master Pages. Can anyone help?
ARJ DESIGNS
Member
163 Points
139 Posts
Re: How do I hide/show asp:Panel on asp:DropDownList OnSelectedIndexChanged?
Jan 16, 2013 09:47 PM|LINK
When I set EnablePartialRendering = "false", I get the following error:
keshavkumar....
Member
66 Points
15 Posts
Re: How do I hide/show asp:Panel on asp:DropDownList OnSelectedIndexChanged?
Jan 17, 2013 12:25 AM|LINK
Attach your iis instance in visual studio and load the page or run the application in debug mode.
It will then show which object is null in visual studio.
Thanks,
Keshav Kumar.
------------------------------------------------------
Please mark the reply as "Mark As Answer " if this post answers your query.
Jugg3rNaut
Member
474 Points
109 Posts
Re: How do I hide/show asp:Panel on asp:DropDownList OnSelectedIndexChanged?
Jan 17, 2013 03:05 AM|LINK
Post your master page code please
-------------------------------------------------------
Contact-Info:Adils.kiet@gmail.com
ARJ DESIGNS
Member
163 Points
139 Posts
Re: How do I hide/show asp:Panel on asp:DropDownList OnSelectedIndexChanged?
Jan 18, 2013 05:35 PM|LINK
After several days of troubleshooting and disecting the code, turns out that a connection string was causing the UpdatePanel to throw an error.