Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language:
Expertise: Intermediate
Jan 20, 2000

How to Pop Up Message Boxes with ASP Code

It's helpful during debugging to be able to print out values as the page is executing. Although this is generally done using Response.Write statements, it can also be done with client-side JavaScript. This code can be used to pop up a message box with ASP code, because message boxes themselves are not supported in ASP (server-side code execution). Remember to remove this code segment from the production code; use this only for debugging purposes.

Example:

  
' ASP code 
%>
<SCRIPT LANGUAGE="Javascript">
alert("<%  = strMessageToShow %>")
</SCRIPT>
<%
' rest of ASP code  
Jai Bardhan
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap