Nov 5, 2004 #1 Mike555 Technical User Joined Feb 21, 2003 Messages 1,200 Location 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 Joined Mar 24, 2001 Messages 3,742 Location 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 Joined Oct 4, 2002 Messages 1,781 Location 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 Joined Jun 14, 2003 Messages 19 Location 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 Joined Feb 21, 2003 Messages 1,200 Location US Thank you all for your help. -- Mike Upvote 0 Downvote