RegisterStartupScript and browser page refresh

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Moe Sisko

    #1

    RegisterStartupScript and browser page refresh

    Using ASP.NET 2.0 .

    When a certain button is pressed on Page "A", I perform some server side
    processing, then call Page.ClientScri pt.RegisterStar tupScript 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 RegisterStartup Script 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






Working...