Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my project , I have a requirement that when a open a popup using linkbutton and close the popup. After that if i press F5 or Refresh on the browser,the popup is getting opened. I want to stop this ,could anyone help me on this and I am using javascript for popup.
Posted
Comments
_Amy 25-Jul-12 5:37am    
CH Guravaiah 25-Jul-12 5:52am    
Thank you for the reply. I will go through the code and find whether it would be useful to me.

1 solution

If you're doing a postback to run a popup, I don't know why ? But to get around a postback occurring on a refresh, do a REsponse.Redirect to your base URL if you can, that way, the refresh won't send the event. But, if you're serving data you need in your reply, that won't work, unless you do a redirect with a query string parameter that tells your page how to render differently.

A popup should not require a postback. The popupped up page should have, on the URL, all the data it needs to render itself.
 
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