Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting a popup box

Status
Not open for further replies.

jdmarsh2g

MIS
Jun 9, 2000
4
0
0
US
What can i use to get a pop up box like javascript ex...

If Request.Cookies("PeopleIDNumber") = "" THEN
MsgBox("You have not set your ID")
alert('what can i use here to popup')

response.redirect "ID.asp"


 
Microsoft .ASP does not support 'MsgBox'. You need to use 'window.alert' using JavaScript.
 
You can use Microsoft VBScript (client side script) to pop up a message box. JavaScript is not the only way to do it. Try this:

<% If Request.Cookies(&quot;PeopleIDNumber&quot;) = &quot;&quot; Then %>
<script language='vbscript'>Msgbox(&quot;Test&quot;)</script>
<% Response.Redirect &quot;ID.asp&quot; %>

The first and third lines are server side ASP code, and the second line is client side VBScript.

Good luck.
Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top