473,327 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Message Box for confirmation

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
Sep 21 '07 #1
2 1517
"bobby" <bo***@discussions.microsoft.comwrote in message
news:84**********************************@microsof t.com...
>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

Sep 21 '07 #2
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" <bo***@discussions.microsoft.comwrote in message
news:84**********************************@microsof t.com...
>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

Sep 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Craig | last post by:
Hi, I'm working on a PHP FTP client, but my testers have complained the delete file link is too easy to hit by mistake. Would it be possible/plausible to write a bit of javascript that pops up a...
6
by: DS | last post by:
Where in this code does it say that when you go to delete a message box pops up. I don't want the message box to pop up. I want to remove it from his code. Thanks DS Private Sub...
4
by: Ron Clarke | last post by:
I have a small web app that displays data from a SQL Server database. Using a DataGrid control on a page, the user can delete a row from the database. This works fine. But I want to prompt the user...
7
by: Al Cadalzo | last post by:
I want to respond to a submit button click on a form by writing to a database then display a popup confirmation window that just has a 'Success' message and an OK button on it that returns the user...
6
by: Dave | last post by:
Hello. I want to prompt user for some action with Yes/No message, I know some tricks in JavaScript, but I need to handle the user answer at server side. Exactly I want to prompt user for...
2
by: steggun | last post by:
How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick Hello All, I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the server-side code for the LinkButton_OnClick...
2
by: isaac2004 | last post by:
hi i am trying to send a html message that reiterates a invoice from a online store site im making, i have the invoice written to the browser but i would also like to send one to the customer via...
16
by: whyyyy | last post by:
The script below works fine if the form is filled out and submitted. But a (blank) e-mail is sent whenever the page loads, even when the form is not submitted. I would like to receive the e-mail...
2
by: Tatyana | last post by:
Hello, I'm having problems to Style Order Confirmation Email Body. I'm sending it out as HTML. Everything looks fine in Outlook, but hotmail accounts (checked it on yahoo and hotmail) seem to...
0
by: bay_dar | last post by:
I have an ASP.NET application with vb that I would like to use a confirmation box with, but only if certain conditions are met. In my case I would only want this msgbox to show up if a user entered...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.