Java Script doesn't run before server.transfer
-
I am using a javascript alert as a msgbox temp = " alert ('Login Required'); " page.registerstartupscript("login",temp) script works fine until I add server.transfer("login.aspx") the transfer works and the script doesn't execute Any Ideas on how to force the script to run first then the transfer
-
I am using a javascript alert as a msgbox temp = " alert ('Login Required'); " page.registerstartupscript("login",temp) script works fine until I add server.transfer("login.aspx") the transfer works and the script doesn't execute Any Ideas on how to force the script to run first then the transfer
First, this question belongs in the ASP.NET Forum. Second, you can't force the client to run ANY script. Third, you might want to look into Forms Authentication. Any page that's protected by the authentication automatically redirects to a login page. You don't have to do anything in your code to make it work... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome