You cant use MsgBox in VBScript as that spawns a system message box and since the VBScript is executed on the server not the client if it were possible to use the MsgBox command, it would open a message box on the server, not the client.
Instead do something like this:
Dim sJavaScript
sJavaScript = "<script language=javascript>"
sJavaScript = sJavaScript & "alert('Invalid username and password!');"
sJavaScript = sJavaScript & "</scr" & "ipt>"
Response.write(sJavaScript)
That will spawn a javascript alert box on the client.
For asp type questions, you would be best off staying in the ASP forums where you were earlier, this is more or less for
VB (Windows apps) and such.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429