all groups > visual studio .net general > january 2005 >
You're in the

visual studio .net general

group:

how to display a message box in web application using asp.net?


how to display a message box in web application using asp.net? yezanxiong
1/27/2005 7:07:05 AM
visual studio .net general:
Hello all,

I am new in asp.net developer,I would like to ask a simple question. how to
display a message box in web application using asp.net?

If I just use

Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnOK.Click
MsgBox("please enter the correct user name and password",
MsgBoxStyle.Information, "Failed in login")
End Sub

when it run, it prompt : It is invalid to show a modal dialog or form when
the application is not running in UserInteractive mode. Specify the
ServiceNotification or DefaultDesktopOnly style to display a notification
from a service application.

Anyone can help me to solve this question? Thanks.

RE: how to display a message box in web application using asp.net? Tim
2/21/2005 3:15:03 PM
Hello,
This site answers that question, and provides downloadable code too.
Adding Client-Side Message Boxes in your ASP.NET Web Pages
http://aspnet.4guysfromrolla.com/articles/021104-1.aspx

Tim Stall
http://timstall.dotnetdevelopersjournal.com/

[quoted text, click to view]
AddThis Social Bookmark Button