Women in Technology

Hear us Roar



Article:
  Enhancing ASP.NET Pages with JavaScript
Subject:   RegisterScript before Response.Redirect()
Date:   2007-01-15 03:15:07
From:   SwethaSN
Response to: RegisterScript before Response.Redirect()

I got to know how to register the script but the same logic does not work with NetScape & Firefox.


Code -
Page.RegisterStartupScript("onSubmit","<script>FireAlert('PPP');redirect();</script>");


This fires the alert & then navigates to next page & on browsing back again fires the alert followed by redirect(). So we need to incorporate a condition in redirect() method to avoid repetative calls.


But I am not finding a solution for NetScape & Firefox. Please let me know if anyone has come across such issues.


Thanks,
Swetha

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • RegisterScript before Response.Redirect()
    2007-11-15 03:53:37  niteensapkal [View]

    Have u solve this problem i.e. alert , Response.Redirect and Back button..
    Plese tell me it.. I am facing same problem.