Click here to Skip to main content
16,019,109 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
string strs = "alert('Patient detail updated successfully!')";
ScriptManager.RegisterStartupScript(this, GetType(), "ServerControlScript", strs, true);

when i use this script this will work fine but it will show my few panel controls that was associated with modulpopup ,so how to hide these panel without using visible false or should i change my script .
Thanks
Posted
Updated 25-Jan-12 1:45am
v2
Comments
BillWoodruff 25-Jan-12 8:28am    
"my few panel controls that was associated with modulpopup" Without knowing what "modulpopup" is, and how it is used, in the context of your application, or web-page, I don't think we can help you get started on this.

1 solution

I'm assuming from your question that your "modal popup" is really just a panel on your form that you show/hide depending on whether you need it or not, either from code-behind or from a javascript implementation. If this is the case, you will have to explicitly hide the panel either by code-behind if there is a postback, or from the javascript if that is the route you have chosen to use.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900