Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Message Box for confirmation

Reply
Thread Tools

Message Box for confirmation

 
 
=?Utf-8?B?Ym9iYnk=?=
Guest
Posts: n/a
 
      09-21-2007
I have a asp page. I have a form View. In EditTemplate I have a delete
button. When I click on that delete button In OnClientclick it should give
me message.

Are you sure you want to delete this user?

* This will change user status to delete.
*But the user will be in the same System.

OK Cancel

I don't know how to do that. Could you please provide me full code.

Thanks
 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      09-21-2007
"bobby" <> wrote in message
news:84979611-AAC5-4187-93A7-...

>I have a asp page. I have a form View. In EditTemplate I have a delete
> button. When I click on that delete button In OnClientclick it should
> give
> me message.
>
> Are you sure you want to delete this user?
>
> * This will change user status to delete.
> *But the user will be in the same System.
>
> OK Cancel
>
> I don't know how to do that. Could you please provide me full code.


OnClientClick="return confirm('Are you sure you want to delete this
user?\n\n* This will change user status to delete.\n*But the user will be in
the same System.');"


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      09-21-2007
This example is a Gridview, but it should work the same as a FormView:
http://www.aspnet101.com/aspnet101/a...vConfirmDelete

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup


"bobby" <> wrote in message
news:84979611-AAC5-4187-93A7-...
>I have a asp page. I have a form View. In EditTemplate I have a delete
> button. When I click on that delete button In OnClientclick it should
> give
> me message.
>
> Are you sure you want to delete this user?
>
> * This will change user status to delete.
> *But the user will be in the same System.
>
> OK Cancel
>
> I don't know how to do that. Could you please provide me full code.
>
> Thanks



 
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
Confirmation Message Box (return Value from Javascript to ASP.NET program ). Please help !!! bienwell ASP .Net 7 08-04-2009 09:09 AM
Building a dialog box in that looks like Confirmation box (ASP.NET). Please help !!! bienwell ASP .Net 5 08-13-2006 03:54 AM
Confirmation message box on a link click? Craig Javascript 2 02-18-2004 10:46 PM
How to show Confirmation message box? Ron Clarke ASP .Net 2 01-15-2004 05:25 AM
Conditional JavaScript confirmation box??...... RyanG ASP .Net 2 10-16-2003 04:14 PM



Advertisments