javascript not working

Joined
Oct 26, 2006
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top