alert using Javascript with asp.net

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
 
S

Steven Alexander

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)
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top