Problem with registerstartupscript

Posted by Dotnetcreed under ASP.NET on 11/24/2011 | Points: 10 | Views : 1020 | Status : [Member] | Replies : 1
I have the following situation. I am using the RegisterStartupScript to open a new window when they request the page. This works fine.
Now close the window and in a post back on the page a response.redirect
is issued and that works fine. But the problem is,
If the user click the Back button on the browser toolbar it then reopens
the window since the javascript is still there. Is there someway to get rid
of the registered startup code?

Sankardeep V

Code till you bleed..........


Posted by: muralikrishnasurap-12704 on: 11/25/2011 [Member] Starter | Points: 25

If my understanding is correct you can avoid back button click using java script using below script

Best Regards
Murali Krishna.S

Dotnetcreed, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response