Reputation: 3736
I am trying to do a Messagebox.show on my asp.net page load event, and I can't see the messagebox object in IntelliSense.
How come?
Upvotes: 0
Views: 698
Reputation: 5558
MessageBox is meant for WinForms model. You can use this instead: A Simple ASP.NET Server Control: Message Box & Confirmation Box. If you've implemented it you can do calls like this:
msgBox.alert("Hello world!");
Upvotes: 1
Reputation: 4519
if you want to show a message in asp.net you can use the label control. Eric is right messagebox is for desktop apps.
Upvotes: 0
Reputation: 150108
MessageBox is meant for desktop applications, not web applications. See this article for creating popups for web applications.
Upvotes: 4