Saturday, March 24, 2012

Panel visibility in postback

Hi, I have a a panel in one user control, uc1. I am using this in user control uc2, which I am using in page1.aspx

The panel's visibility is false by default in design mode. At button click I make the Panel.Visible = True. When I do submit of page, the panel.visible becomes False by itself.

The viewstate for panel, page, controls is true. so, what am I missing here. it should be True. Right?

It works fine If I do this panel visbility true/false in one single page2.aspx

Please advice. Thanks

Pankajmore clarity please...

where are you redirecting to from page1.aspx in the first case where you are facing a problem ?
hi, I am not redirecting anywhere. Its all happening with in one .aspx page only. Point to note here is that Page1.apsx is developed using nested user controls. I dunno, if thats really causing the problem.

Does any one have faced this? Please advice. Thanks

0 comments:

Post a Comment