Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: alert in asp


Message #1 by "yls" <yls177@h...> on Mon, 9 Oct 2000 16:53:44 +0800
You can't do that...

but I have done the following (for debug purposes)...

subroutine dbg(msg)
<SCRIPT language=javascript>
<!--
alert(<%=msg%>)
// -->
end sub

Then within the asp code, call:
   dbg("This is what I want to see at the browser alert window!")

-----Original Message-----
From: yls [mailto:yls177@h...]
Sent: Monday, October 09, 2000 1:54 AM
To: javascript
Subject: [javascript] alert in asp


Hi, can i do a alert in asp? i have done the below

response.write "<script>alert('hello')</script>"
response.redirect "http://www.yahoo.com"

but the alert hello never come up...




  Return to Index