Hi Herb,
Do you want to show a pop-up IE window or a messagebox? You can show both
of them with java script. Use window.alert() method to show a messagebox
and use window.open() method to open a popup IE window. And you can use
Page. RegisterStartupScript() method to register the client script from
code behind. For example, the following code shows a messagebox when a
Webcontrol button on the page is clicked.
private void Button1_Click(object sender, System.EventArgs e)
{
string strScript = "<script>" + "window.alert('Hello world!!!')" +
"</script>";
Page.RegisterStartupScript("Alert", strScript);
}
Please refer to the following link for more information:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
erence/methods/alert.asp
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
erence/methods/open_0.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemWebUIPageClassRegisterStartupScriptTopic.asp
--------------------
| From: "Herb Stull" <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.adonet
| Subject: PopUp Windows
| Date: Thu, 16 Oct 2003 11:18:58 -0400
| Lines: 8
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| NNTP-Posting-Host: 23.pwlr1.xdsl.nauticom.net
| Message-ID: <
[email protected]>
| X-Trace: news.nauticom.net 1066318139 209.195.150.152 (16 Oct 2003
11:28:59 -0400)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!skynet.be!skynet.be!newshub1.home.nl!home.nl!news2.euro.net!newshosting
.com!news-xfer2.atl.newshosting.com!129.250.35.142.MISMATCH!iad-feed.news.ve
rio.net!phl-feed.news.verio.net!news.nauticom.net!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:63774
| X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
|
| Hello All,
|
| Does anyone know of a way to display pop-up windows in ASP.NET? I'm
looking
| for a way to inform the user of errors encountered in a data entry form.
|
| Thanks, Herb
|
|
|