Panel displayed from UserControl
-
Hi all, I have created a user control which has a grid on a Asp:Panel, and a button. When the user control is placed on a page only the button will be displayed and on the click of this button the panel will be displayed as a popup using ModalPopupExtender. This page postbacks to itself on another button, during this event the Panel is displayed for a second and then goes off. How can that be avoided? I don't want the Blank Panel to displayed while page load. I have already tried setting the panel's visibility in various events of page life cycle to avoid it... but none works. Any help or direction would be appreciable. Thanks, AB
Thanks & Regards, AB "Everyone is a genius at least once a year"
-
Hi all, I have created a user control which has a grid on a Asp:Panel, and a button. When the user control is placed on a page only the button will be displayed and on the click of this button the panel will be displayed as a popup using ModalPopupExtender. This page postbacks to itself on another button, during this event the Panel is displayed for a second and then goes off. How can that be avoided? I don't want the Blank Panel to displayed while page load. I have already tried setting the panel's visibility in various events of page life cycle to avoid it... but none works. Any help or direction would be appreciable. Thanks, AB
Thanks & Regards, AB "Everyone is a genius at least once a year"
-
I think the original concept of the extender was to close or hide the panel after a postback is issued. To keep the panel visible, use the show or hide in your postback code.
modalpopupextender.show()
modalpopuextender.hide()I have done the same, but the problem is during page rendering the Panel is rendered for few seconds and then goes off... I don't want the panel to be displayed until the button is clicked.
Thanks & Regards, Pramod "Everyone is a genius at least once a year"