Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Popup dialog boxes?

Reply
Thread Tools

Popup dialog boxes?

 
 
et
Guest
Posts: n/a
 
      10-18-2005
Am I correct in that Popup dialog boxes are not available in asp.net? Like
the "Are you sure you want to delete?" with yes/no options? What are ways
to do this?

Thanks for your help. Am new to this, so I may have just missed it.


 
Reply With Quote
 
 
 
 
Dirc Khan-Evans
Guest
Posts: n/a
 
      10-18-2005
et wrote:

> Am I correct in that Popup dialog boxes are not available in asp.net?
> Like the "Are you sure you want to delete?" with yes/no options?
> What are ways to do this?
>
> Thanks for your help. Am new to this, so I may have just missed it.



This is client side, so you will need to use Javascript.



--

 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      10-18-2005
et,

You need to use javascript for this.

If you would like some examples I have a few useful javascripts in a
Javascript component I built and give away free on my website at:
http://www.aboutfortunate.com?page=javascript

The code is free and comes with all source as a visual studio.net 2003
project. There is also a downloadable help file for all the objects
available on my site.

Feel free to email me if you have any questions. The code you'd want to look
at in the javascript object is in the "Confirmations" section.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"et" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Am I correct in that Popup dialog boxes are not available in asp.net?
> Like the "Are you sure you want to delete?" with yes/no options? What are
> ways to do this?
>
> Thanks for your help. Am new to this, so I may have just missed it.
>



 
Reply With Quote
 
ScottStoecker@excite.com
Guest
Posts: n/a
 
      10-18-2005
Use the Attributes.Add method to assign a JavaScript variable to the
button:

btnDelete.Attributes.Add("onclick", "javascript:if(confirm('Do you
really want to delete the record?')== false) return false;")

 
Reply With Quote
 
Dirc Khan-Evans
Guest
Posts: n/a
 
      10-19-2005
et wrote:

> Am I correct in that Popup dialog boxes are not available in asp.net?
> Like the "Are you sure you want to delete?" with yes/no options?
> What are ways to do this?
>
> Thanks for your help. Am new to this, so I may have just missed it.



This is client side, so you will need to use Javascript.



--

 
Reply With Quote
 
Ferret Face
Guest
Posts: n/a
 
      10-19-2005
I have implemented a method of using a Panel (a.k.a. DIV layer) that would
become visible after a certain event has occured to avoid some popup
blockers.

The only problem is that DIV layers cannot appear on top of Selection lists.


"et" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Am I correct in that Popup dialog boxes are not available in asp.net?

Like
> the "Are you sure you want to delete?" with yes/no options? What are ways
> to do this?
>
> Thanks for your help. Am new to this, so I may have just missed it.
>
>



 
Reply With Quote
 
 
 
Reply

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
Watir Javascript popup handler: How to handle the popup dialog? Rajesh Ruby 0 07-31-2007 04:36 AM
How to hide the dialog when execute a dialog based application in VC? yw C++ 3 07-02-2005 03:35 AM
display print preview dialog, not print dialog Matt Javascript 1 11-20-2004 01:18 AM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
Solution: Raising an Event Handler Postback on Parent Window From Popup Child Window Dialog Box Earl Teigrob ASP .Net 1 06-16-2004 04:19 PM



Advertisments