ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Enhancing ASP.NET Pages with JavaScript
Subject:   Problem with Page.RegisterStartupScript
Date:   2005-03-23 22:45:28
From:   vishalvishal
Hi,


when you add javascript code to your page using Page.RegisterStartupScript and you redirect to some other page and now if you use browser's back button and come to the original page the script add get's executed automatically.
If i am showing a confirm and clicking "yes" button i redirect user to some other page through javascript's window.location.href='ABC.aspx'
and if i press browser's back button on ABC.aspx page i see the confirmation box on the previous page.


So is there any way that i can avoid this.


thnx..


1 to 2 of 2
  1. Problem with Page.RegisterStartupScript
    2006-06-27 04:35:50  ROCK007 [View]

  2. Problem with Page.RegisterStartupScript
    2005-05-20 03:11:21  u [View]

    • Problem with Page.RegisterStartupScript
      2007-01-29 11:43:13  Manindra [View]

1 to 2 of 2