Hi,I need to stop displaying the Modal Popup Extender on page refresh and when browser back button is clicked.Please suggest me to find out the solution.
+1
A:
I take it you're talking javascript?
You probably need to save a cookie after the first 'show'. Then check this each time - if it's present, don't show it again.
adam
2010-03-22 14:09:49
Hi adam, thanks for your quick reply.I am displaying Modal pop-up extender from code behind using C#. Could you please more precise on this.Sample code on this would be appreciated.
karthik
2010-03-22 14:15:19
Sorry I can't, C# isn't my area. You may have to read the manual.
adam
2010-03-22 14:23:57
K..thanks and could you please tell me which event will be fired on click of browser back button and how to handle those event.
karthik
2010-03-22 14:26:52
A:
I don't know what the Modal Popup Extender is, but the standard procedure is as follows:
Once you opened your popup, you should set a cookie to remember you already opened it. Next time you come across this piece of code, you have to check for the cookie first and skip opening the popup if it's there.
kroimon
2010-03-22 14:11:44
Hi kroimon,Thanks for the suggestion and i hope it helps me to solve the issue.I have to work around on this.
karthik
2010-03-22 14:30:01