Search:
Namespaces
Discussions
.NET v1.1
Feedback
simple Q: pop-up box
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngclient' list
.
Tim Musschoot
Hi guys,
I know how to do an "alert" in javaScript.
How do I make a pop-up box in .net that has <ok> and <cancel> buttons and
can
positon the box at a specifc position?
Thanks
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
| ASP.net DOCS =
http://www.aspng.com/docs
| [aspngfreeforall] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/aspngfreeforall
= JOIN/QUIT
| news://ls.asplists.com = NEWSGROUP
Reply to this message...
Tim Musschoot
This issue has come up MANY times before.
First, understand ASP.NET is *still a server technology* and not on the
client. SO, to do a pop-up, you will still need javascript. After
realizing that, you can use the good ol' alert(), or create a custom
HTML page that pops-up in response to a javascript call.
But you *can't* use ASP.NET to show a messagebox, alert window, yes/no
window, etc. using the built-in objects like
MessageBox
.Show() --- those
functions are executing on the server and unless you have a server
administrator sitting there all day clicking OK or CANCEL, then you'll
be in trouble.
-th
-----Original Message-----
From: denny L [mailto:
Click here to reveal e-mail address
]
Sent: Monday, July 08, 2002 2:52 PM
To: aspngfreeforall
Subject: [aspngfreeforall] simple Q: pop-up box
Hi guys,
I know how to do an "alert" in javaScript.
How do I make a pop-up box in .net that has <ok> and <cancel> buttons
and
can
positon the box at a specifc position?
Thanks
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
| ASP.net DOCS =
http://www.aspng.com/docs
| [aspngfreeforall] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/aspngfreeforall
= JOIN/QUIT
| news://ls.asplists.com = NEWSGROUP
| ASP.net DOCS =
http://www.aspng.com/docs
| [aspngfreeforall] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/aspngfreeforall
= JOIN/QUIT
| news://ls.asplists.com = NEWSGROUP
Reply to this message...
Andy Smith
dGhhdCBzYWlkLi4uIHRoZSB3aW5kb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JhbGxdIG1lbWJlciB0aW1AdGltaGV1ZXIuY29tID0gWU9VUiBJRA0KCXwgaHR0cDovL3d3dy5h
c3BsaXN0cy5jb20vYXNwbmdmcmVlZm9yYWxsID0gSk9JTi9RVUlUDQoJfCBuZXdzOi8vbHMuYXNw
bGlzdHMuY29tID0gTkVXU0dST1VQDQoJDQoJDQoJfCBBU1AubmV0IERPQ1MgPSBodHRwOi8vd3d3
LmFzcG5nLmNvbS9kb2NzDQoJfCBbYXNwbmdmcmVlZm9yYWxsXSBtZW1iZXIgVGltLm11c3NjaG9v
dEBydWcuYWMuYmUgPSBZT1VSIElEDQoJfCBodHRwOi8vd3d3LmFzcGxpc3RzLmNvbS9hc3BuZ2Zy
ZWVmb3JhbGwgPSBKT0lOL1FVSVQNCgl8IG5ld3M6Ly9scy5hc3BsaXN0cy5jb20gPSBORVdTR1JP
VVANCgkNCgkNCgkNCgl8IFthc3BuZ2NsaWVudF0gbWVtYmVyIEFuZHkuU21pdGhAbWFjdGVjLmNv
bSA9IFlPVVIgSUQNCgl8IGh0dHA6Ly93d3cuYXNwZnJpZW5kcy5jb20vYXNwZnJpZW5kcy9hc3Bu
Z2NsaWVudC5hc3AgPSBKT0lOL1FVSVQNCgkNCg0K
Reply to this message...
Andrew Munro
try
Button1.Attributes.Add("onClick", "alert('Message to
display');")
-----Original Message-----
From: Andy Smith [mailto:
Click here to reveal e-mail address
]
Sent: 09 July 2002 02:19
To: aspngclient
Subject: RE: [aspngclient] RE: simple Q: pop-up box
that said... the window.confrim() method is the one which offers
"ok/cancel", as opposed to window.alert(), which only shows the "ok".
-----Original Message-----
From: Tim Musschoot [mailto:
Click here to reveal e-mail address
]
Sent: Mon 7/8/2002 6:04 PM
To: aspngclient
Cc:
Subject: [aspngclient] RE: simple Q: pop-up box
This issue has come up MANY times before.
First, understand ASP.NET is *still a server technology* and not on the
client. SO, to do a pop-up, you will still need javascript. After
realizing that, you can use the good ol' alert(), or create a custom
HTML page that pops-up in response to a javascript call.
But you *can't* use ASP.NET to show a messagebox, alert window, yes/no
window, etc. using the built-in objects like
MessageBox
.Show() --- those
functions are executing on the server and unless you have a server
administrator sitting there all day clicking OK or CANCEL, then you'll
be in trouble.
-th
-----Original Message-----
From: denny L [ mailto:
Click here to reveal e-mail address
<mailto:
Click here to reveal e-mail address
> ]
Sent: Monday, July 08, 2002 2:52 PM
To: aspngfreeforall
Subject: [aspngfreeforall] simple Q: pop-up box
Hi guys,
I know how to do an "alert" in javaScript.
How do I make a pop-up box in .net that has <ok> and <cancel> buttons
and
can
positon the box at a specifc position?
Thanks
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
<
http://www.hotmail.com
>
| ASP.net DOCS =
http://www.aspng.com/docs
<
http://www.aspng.com/docs
>
| [aspngfreeforall] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/aspngfreeforall
<
http://www.asplists.com/aspngfreeforall
> = JOIN/QUIT
| news://ls.asplists.com <news://ls.asplists.com> = NEWSGROUP
| ASP.net DOCS =
http://www.aspng.com/docs
<
http://www.aspng.com/docs
>
| [aspngfreeforall] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/aspngfreeforall
<
http://www.asplists.com/aspngfreeforall
> = JOIN/QUIT
| news://ls.asplists.com <news://ls.asplists.com> = NEWSGROUP
| [aspngclient] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngclient.asp
<
http://www.aspfriends.com/aspfriends/aspngclient.asp
> = JOIN/QUIT
Reply to this message...
System.Windows.Forms.MessageBox
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com