views:

157

answers:

2

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
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
Sorry I can't, C# isn't my area. You may have to read the manual.
adam
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
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
Hi kroimon,Thanks for the suggestion and i hope it helps me to solve the issue.I have to work around on this.
karthik