| Article: |
Enhancing ASP.NET Pages with JavaScript | |
| Subject: | RegisterScript before Response.Redirect() | |
| Date: | 2007-01-15 00:48:25 | |
| From: | SwethaSN | |
|
Hi,
|
||
Showing messages 1 through 2 of 2.
| Article: |
Enhancing ASP.NET Pages with JavaScript | |
| Subject: | RegisterScript before Response.Redirect() | |
| Date: | 2007-01-15 00:48:25 | |
| From: | SwethaSN | |
|
Hi,
|
||
Showing messages 1 through 2 of 2.
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