May 10, 2002 #1 jdmarsh2g MIS Joined Jun 9, 2000 Messages 4 Location 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"
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"
May 10, 2002 #2 mrobb Programmer Joined Nov 29, 2001 Messages 9 Location US Microsoft .ASP does not support 'MsgBox'. You need to use 'window.alert' using JavaScript. Upvote 0 Downvote
May 13, 2002 #3 MaeJams Programmer Joined Apr 24, 2001 Messages 51 Location US 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("PeopleIDNumber" = "" Then %> <script language='vbscript'>Msgbox("Test"</script> <% Response.Redirect "ID.asp" %> The first and third lines are server side ASP code, and the second line is client side VBScript. Good luck. Rich Upvote 0 Downvote
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("PeopleIDNumber" = "" Then %> <script language='vbscript'>Msgbox("Test"</script> <% Response.Redirect "ID.asp" %> The first and third lines are server side ASP code, and the second line is client side VBScript. Good luck. Rich