Hi:
I have a project where I used Client.RegisterStartupoScrtip to pop up an alert message, then redirect user to a home page.
The code I was using as follows:
ClientScript.RegisterStartupScript(Me.GetType, "", "<script language=""Javascript"">alert('Thank you!!');self.close();</script>")
Response.Redirect("http://vaww.inoc.va.gov/vanoc/index.asp")
If I comment out the second statement (Response.Redirect), the alert window pops up no problem. Once I put the second statement in, user will be redirected to the home page, the alert window was bypassed.
Any ideas??
TIA
Simon
I have a project where I used Client.RegisterStartupoScrtip to pop up an alert message, then redirect user to a home page.
The code I was using as follows:
ClientScript.RegisterStartupScript(Me.GetType, "", "<script language=""Javascript"">alert('Thank you!!');self.close();</script>")
Response.Redirect("http://vaww.inoc.va.gov/vanoc/index.asp")
If I comment out the second statement (Response.Redirect), the alert window pops up no problem. Once I put the second statement in, user will be redirected to the home page, the alert window was bypassed.
Any ideas??
TIA
Simon