RegisterStartupScript and browser page refresh

M

Moe Sisko

Using ASP.NET 2.0 .

When a certain button is pressed on Page "A", I perform some server side
processing, then call Page.ClientScript.RegisterStartupScript to attach
some javascript, which causes a new browser window to open on Page "B". This
all works fine.

However, if the user then performs a refresh on the browser on Page "A",
then this causes the RegisterStartupScript to run again, causing Page "B" to
open up again. Is there any way I can prevent the browser refresh from
opening Page "B" again ?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top