May 10, 2002 #1 jdmarsh2g MIS Jun 9, 2000 4 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 Nov 29, 2001 9 US Microsoft .ASP does not support 'MsgBox'. You need to use 'window.alert' using JavaScript. Upvote 0 Downvote
May 13, 2002 #3 MaeJams Programmer Apr 24, 2001 51 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