473,386 Members | 1,745 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,386 software developers and data experts.

alert messages and deleting a datagrid row.

Hi.

I have a delete column in an ASP.NET grid ie, users click on delete and it
deletes a row.

It currently has no confirmation dialog

ie it just goes ahead and deletes it.

I would like to add a confirmation dialog ("Are you sure you want to delete
this X? This operation is permanent and cannot be undone.")

I would like this alert to be done as a Javascript popup if their level of
browser is up to it, and to have the page posted back with this message if
their browser does not have javascript (eg PDA's).

Any suggestions for the best way to go?

Thanks!

Lauchlan M
Nov 17 '05 #1
2 1605
most of the answer is in the second page of this article:

http://aspnet.4guysfromrolla.com/articles/090402-1.aspx

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
"Lauchlan M" <LM********@Hotmail.com> wrote in message
news:Oe*****************@TK2MSFTNGP10.phx.gbl...
Hi.

I have a delete column in an ASP.NET grid ie, users click on delete and it
deletes a row.

It currently has no confirmation dialog

ie it just goes ahead and deletes it.

I would like to add a confirmation dialog ("Are you sure you want to delete this X? This operation is permanent and cannot be undone.")

I would like this alert to be done as a Javascript popup if their level of
browser is up to it, and to have the page posted back with this message if
their browser does not have javascript (eg PDA's).

Any suggestions for the best way to go?

Thanks!

Lauchlan M

Nov 17 '05 #2
> most of the answer is in the second page of this article:

http://aspnet.4guysfromrolla.com/articles/090402-1.aspx


Hi Craig.

This covers the JS popup but not the fallback on the server side repost if
the browser does not have JS enabled.

Any ideas there?

Thx

lauchlan M
Nov 17 '05 #3

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

Similar topics

0
by: Ben Reese | last post by:
Hello all When a DataGrid has the focus moving the mouse wheel will scroll the DataGrid. this does not happen (unsuprisingly) when some control other than the datagrid has the focus. However I...
8
by: Dan Williams | last post by:
We have an employee table that contains bank details and are experiencing problems with account numbers being erased and lost. In order to track down why this is happening (either due to our...
1
by: Junkguy | last post by:
I'm having difficulty deleting rows from a datagrid. I want to put a "delete" button on a form and achieve the same functionality as hitting the "delete" key on the keyboard for the selected row of...
5
by: Mojtaba Faridzad | last post by:
Hi, with SetDataBinding( ) a DataGrid shows a DataView. user can select some rows in the grid by holding cotrol key. when user clicks on Delete button, I should delete all selected rows. I am...
2
by: Alex K. | last post by:
I am using datagrid bound to a datatable: DataTable dt = ...; MyGrid.DataSource = new DataView(dt); Now I am trying to intercept delete operation, when user highlights a row and presses...
0
by: Hrvoje Vrbanc | last post by:
Hello, this is a problem I came upon while building a site based on MCMS 2002 but it's not strictly MCMS-oriented: I have a page that displays a certain content in presentation mode but when an...
10
by: Nick | last post by:
Hello, Please pardon my ignorance as I'm sure this is easy to do. I have a datagrid where I want to let the user delete columns. I added a context menu to the datagrid that has a delete option....
9
by: Hamed | last post by:
Hello I have a DataGrid that a is bound to a DataTable. Some of the rows in the DataTable should not be deleted. How can I prohibit deleting of some identified rows? The problem could be...
4
by: Gregc. | last post by:
Hi Would someone have a basic example of form validation that validates name and address, but using only one alert box that displays which fields haven't been completed? I can do it on an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.