DNR
DNR

Reputation: 3736

MessageBox not working on PageLoad

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

Answers (3)

Mr. Smith
Mr. Smith

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

user161433
user161433

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

Eric J.
Eric J.

Reputation: 150108

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

Upvotes: 4

Related Questions