views:

79

answers:

3

Hi, 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?

+2  A: 

MessageBox is meant for desktop applications, not web applications. See this article for creating popups for web applications.

Eric J.
A: 

if you want to show a message in asp.net you can use the label control. Eric is right messagebox is for desktop apps.

A: 

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!");
Mr. Smith