Javascript - Alert and Redirect???
-
When I finished page 1, I want to show a messagebox to alert about something. After that, I will redirect to page 2 but these codes doesn't work:
string s = "alert('Alert something'); location.href='page2.aspx';"; Page.RegisterClientScriptBlock("alarm",s )
The messagebox doesn't appear. It jz redirect to page2.aspx ??? Who can tell me why? -
When I finished page 1, I want to show a messagebox to alert about something. After that, I will redirect to page 2 but these codes doesn't work:
string s = "alert('Alert something'); location.href='page2.aspx';"; Page.RegisterClientScriptBlock("alarm",s )
The messagebox doesn't appear. It jz redirect to page2.aspx ??? Who can tell me why?Hi, I tried with ur code, its working fine. Try in new applicaiton. Bye Pessi.
-
When I finished page 1, I want to show a messagebox to alert about something. After that, I will redirect to page 2 but these codes doesn't work:
string s = "alert('Alert something'); location.href='page2.aspx';"; Page.RegisterClientScriptBlock("alarm",s )
The messagebox doesn't appear. It jz redirect to page2.aspx ??? Who can tell me why? -
Hi, I tried with ur code, its working fine. Try in new applicaiton. Bye Pessi.