alert using Javascript with asp.net

  • Thread starter Thread starter Michelle Stone
  • Start date Start date
M

Michelle Stone

Hi all,

I use the following command to display a messagebox

Response.Write ("<script language=javascript>alert('Hello
World');</script>);

It works. But the window containing the messagebox whites
out.

Any way to avoid this?

Thanks

Michelle
 
Michelle,
to write a script (JScript) i use the RegisterStartupScript
("error",("<script language=javascript>alert('Hello
World');</script>")

Try this. The script block will be inside the tags.

Steven Alexander
(e-mail address removed)
 
Back
Top