Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > alert using Javascript with asp.net

Reply
Thread Tools

alert using Javascript with asp.net

 
 
Michelle Stone
Guest
Posts: n/a
 
      12-05-2003
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
 
Reply With Quote
 
 
 
 
Steven Alexander
Guest
Posts: n/a
 
      12-05-2003
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


>-----Original Message-----
>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
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert..General Alert?..New Discovery?. =?Utf-8?B?U3BhbW1lcipLaWxsZXI=?= Wireless Networking 0 07-24-2007 03:36 PM
on click in popup window throws alert : need to avoid alert of postdata Ganesh ASP .Net 0 06-29-2007 06:51 AM
How to create a form Alert - Not using Alert Boxes Mersh Java 0 03-13-2007 04:14 PM
Detect whether javascript threw an alert window (with javascript) umdsasha@gmail.com Javascript 3 08-24-2006 06:25 AM
ALERT: Virus Scam Alert! Toronto Garage Door Company Computer Support 1 11-18-2003 04:16 PM



Advertisments