Nov 5, 2004 #1 Mike555 Technical User Feb 21, 2003 1,200 US When attempting to use Messagebox.Show in my ASP/VB.NET appolication I get the error message "Name 'messagebox' is not declared". How can I use the MessageBox.Show function? The answer, I'm sure, is probably very simple. Thanks. -- Mike
When attempting to use Messagebox.Show in my ASP/VB.NET appolication I get the error message "Name 'messagebox' is not declared". How can I use the MessageBox.Show function? The answer, I'm sure, is probably very simple. Thanks. -- Mike
Nov 5, 2004 #2 JohnYingling Programmer Mar 24, 2001 3,742 US You can not use it. MessageBox is in the System.Windows.Forms Namespace, would run on the server and would stop your Application. http://www.VBResizer.com Forms/Controls Resizing/Tabbing http://www.VBCompare.com Compare Code http://www.VBSortGen.com Generate Sort Class in VB http://www.Vbcompare.com/Check.Htm(1979 Check To MS) Upvote 0 Downvote
You can not use it. MessageBox is in the System.Windows.Forms Namespace, would run on the server and would stop your Application. http://www.VBResizer.com Forms/Controls Resizing/Tabbing http://www.VBCompare.com Compare Code http://www.VBSortGen.com Generate Sort Class in VB http://www.Vbcompare.com/Check.Htm(1979 Check To MS)
Nov 5, 2004 #3 tgreer Programmer Oct 4, 2002 1,781 US You can use the JavaScript window.alert() method, however. Thomas D. Greer http://www.tgreer.com Providing PostScript & PDF Training, Development & Consulting Upvote 0 Downvote
You can use the JavaScript window.alert() method, however. Thomas D. Greer http://www.tgreer.com Providing PostScript & PDF Training, Development & Consulting
Nov 8, 2004 #4 markbeeson Programmer Jun 14, 2003 19 NZ Depending on when you want to display the message you can build the javascript in the ASP.NET using Code: thisbutton.attributes("onclick")= "alert('This is my messagebox');" Upvote 0 Downvote
Depending on when you want to display the message you can build the javascript in the ASP.NET using Code: thisbutton.attributes("onclick")= "alert('This is my messagebox');"
Nov 8, 2004 Thread starter #5 Mike555 Technical User Feb 21, 2003 1,200 US Thank you all for your help. -- Mike Upvote 0 Downvote