RE: Problem with RegisterStartupScript

From: Suresh (anonymous_at_discussions.microsoft.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 13:21:11 -0800


>The user has reports that they want to view in a seperate IE. I am using the RegisterStartupScript to open a new window
when they request the page.

Can you clarify exactly how the users request a report and how you are using RegisterStartupScript to open a new window?

Do they click on a link??

Suresh.
     
     ----- Lloyd Sheen wrote: -----
     
     I have the following situation. The user has reports that they want to view
     in a seperate IE. I am using the RegisterStartupScript to open a new window
     when they request the page. This works fine.
     
     Now they close the window and request lets say an edit. A response.redirect
     is issued and that works fine. Now the problem.
     
     If the user clicks the "Back to Navigator" button (my app) there is no
     problem but if they click the Back button on the IE toolbar it then reopens
     the report since the javascript is still there. Is there someway to get rid
     of the registered startup code?
     
     Lloyd Sheen