D
DrData
I'm working on an ASP.Net application written in C#. On one page,
there are several datagrid controls used to display, edit and delete
detail records relating to the master record also displayed on that
page. Each row in each datagrid includes a Delete button (added at
runtime by the code-behind page as a ButtonColumn) and an Edit button
(added at runtime by the code-behind page as an EditCommandColumn).
What is the quickest, easiest and most reliable way to add delete
confirmation functionality, so that when the user clicks the Delete
button, they must take some further action before the record is
actually deleted?
Thanks in advance for any help anyone can offer.
I'm operating under the following constraints:
1. This large application was written by a consultant, who did not
document his work, and who is no longer available for modifications
or bug corrections.
2. I'm a VB veteran but a relative newcomer to C# and the Dot Net
environment, a bit overwhelmed by it, and trying to get the job done
using the most straightforward & well-documented controls and
coding techniques.
3. All of our programmers (including those with substantial C#/Dot Net
experience) have had tremendous problems debugging the Java-script
code (both embedded in the C# source and generated by some of the
consultant's proprietary routines) this application relies on, and so
we're endeavoring to minimize its use as we correct and expand the
application.
4. In the _ItemCreated method for each datagrid, there is already some
Java-script specified for the "onclick" event, and so if implementing
delete confirmation requires adding more Java-script in the same
place, it will have to co-exist with the existing Java-script.
there are several datagrid controls used to display, edit and delete
detail records relating to the master record also displayed on that
page. Each row in each datagrid includes a Delete button (added at
runtime by the code-behind page as a ButtonColumn) and an Edit button
(added at runtime by the code-behind page as an EditCommandColumn).
What is the quickest, easiest and most reliable way to add delete
confirmation functionality, so that when the user clicks the Delete
button, they must take some further action before the record is
actually deleted?
Thanks in advance for any help anyone can offer.
I'm operating under the following constraints:
1. This large application was written by a consultant, who did not
document his work, and who is no longer available for modifications
or bug corrections.
2. I'm a VB veteran but a relative newcomer to C# and the Dot Net
environment, a bit overwhelmed by it, and trying to get the job done
using the most straightforward & well-documented controls and
coding techniques.
3. All of our programmers (including those with substantial C#/Dot Net
experience) have had tremendous problems debugging the Java-script
code (both embedded in the C# source and generated by some of the
consultant's proprietary routines) this application relies on, and so
we're endeavoring to minimize its use as we correct and expand the
application.
4. In the _ItemCreated method for each datagrid, there is already some
Java-script specified for the "onclick" event, and so if implementing
delete confirmation requires adding more Java-script in the same
place, it will have to co-exist with the existing Java-script.