Click to See Complete Forum and Search --> : ASP question


nordyj
January 4th, 2000, 12:30 PM
I'm writing an ASP for my company, and everything seems to be working fine so far, except I cannot use MsgBox. When the ASP file is loaded, I get an error stating that MsgBox is 'off limits'. Why would this be?

BrewGuru99
January 4th, 2000, 06:29 PM
Because the actual asp code is being run on the server and not the client's machine, bringing up a msgbox would be worthless, since the client could never see it. You need to use vbscript to display a msgbox for the client.

What you could do, is replace the errant code to display the msgbox with code that would send a script to the client, which will display the msgbox.

Brewguru99