August 27th, 2003, 10:43 PM
msgbox for ASP ?
i found this function msgbox in VBScript contents of my book but when i write somthing with it the browser report an error, is that because msgbox function couldnt be available for ASP ?
August 27th, 2003, 10:49 PM
msgbox will need to run on the client browser, not in server-side asp code.
August 27th, 2003, 11:24 PM
thanx for quick reply~
ok i insert code block into Html page but still reponds nothing, the code is right below, i'd appreciate of any advice.
dim msg = "test~"
August 28th, 2003, 12:30 AM
VBScript is supported by Internet Explorer, but most other browsers will not execute VBScript.
Also, in asp you can't dim msg = "test-"
You dim msg
msg = "test"
August 28th, 2003, 01:52 AM
just as easy!
August 28th, 2003, 02:43 AM
i modified code into this and still got an error:
the browser reports Microsoft VBScript running error (0x800A0046)
msg = "test~"
August 28th, 2003, 03:31 AM
you need to drop the ASP quotes and add the script command around the code.
msg = "test~"
August 29th, 2003, 04:53 AM
i got it ! thanx kkong
July 25th, 2013, 07:16 AM
how design message box with yes or no buttons in asp
it may simple inside of script tag declare a variable and assign the conform box for the variable. check it yes mean write action code in if condition it process if no write code in else part .
var con=confirm("Are u sure u want process")
July 26th, 2013, 08:50 AM
I want to mention only one thing. Not every browser support vbscript, javasript in this case more usefull and has the same alre confirm prompt functionality
Originally Posted by Aravind Udaiyar
July 26th, 2013, 10:43 AM
Hey, in case y'all didn't notice this is a 10-year old thread
Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
October 17th, 2013, 12:13 PM
ASP Msgbox function
ASP doesnt have a message box function. If you want one you will have to do something similar to the following:
string strMessage = "Your message here";
StringBuilder sb = new StringBuilder("");