Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > messagebox in ASP.NET using VB.NET

Thread Tools

messagebox in ASP.NET using VB.NET

Matthew Louden
Posts: n/a
how to show the message box in ASP.NET? I try MessageBox.Show, but not work.

Reply With Quote
Kevin Spencer
Posts: n/a
The MessageBox class is a class that displays a MessageBox on the machine on
which the app is running. An ASP.Net app runs on a server, but the user is
on another machine altogether, somewhere out there in the vast binary sea of
the Internet. There is no way that the MessageBox class can be of any use to
an ASP.Net app. to display a "Message Box" on the client browser, you would
use the JavaScript "alert()" method. This would have to be added to the HTML
of the page sent to the client. You could add such a script using
Page.RegisterStartupScript(). Example:

Dim strScript As String
strScript = "<script type=""text/javascript"">alert('Help! I am being held
captive by Wile E Coyote!')</script>"
If Not Page.IsStartupScriptRegistered("MyScript") Then
Page.RegisterStartupScript("MyScript", strScript)
End If


Kevin Spencer
Microsoft MVP
..Net Developer
Big Things are made up of
Lots of Little Things.

"Matthew Louden" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> how to show the message box in ASP.NET? I try MessageBox.Show, but not


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MessageBox does not popup if using with Atlas on the web application Ted Ngo ASP .Net 0 10-17-2006 03:55 PM
Automatic Refresh of page (using a timer and .reload) causes messagebox. UJ ASP .Net 2 08-12-2005 03:40 PM
Re: MessageBox's using C# Vidar Petursson ASP .Net 0 05-21-2004 09:47 AM
Re: MessageBox's using C# Steve C. Orr [MVP, MCSD] ASP .Net 1 05-19-2004 08:50 AM
Re: MessageBox's using C# Neelima Godugu ASP .Net 0 05-18-2004 04:43 PM