Can you do Message Boxes like a windows app for ASP.NET 1.1? From what I remember, you couldn't in ASP 3.0.
I thought I read something that ASP.NET 2.0 will have this functionality.
Asp.NET is like Vb.NET (from code-behide) ! Write your code as in VB. Some errors may always occur (cause is web App) but the error message will be displayed in the browser.
MsgBox is an alias for System.Windows.Forms.MessageBox. Since this is a Windows Form class, you can't use it in an ASP.NET application -- you'll need to use a javascript alert. Or write to the NT EventLog. Or write to a log file, using something like log4net
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
Yes, in vbscript you can show a message box but your original post stated to write it in the code-behind page which meant that you were calling the System.Windows.Forms.MessageBox (as chiph pointed out to you).
Therefore your second soltion is different to your original (although it now contains is a valid solution) and the original response was incorrect and will still not work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.