DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Posts
    25

    Arrow confirmation from user from a delete button in the DataGrid

    One of the columns of the datagrid is a TemplateColumn containing a Delete button.
    i'm deleting a row on the click of the Delete Button.
    How do i put in a confirmation - "Are you sure ..."
    for the user before, the row gets deleted. Since the delete code is a part of the following event -

    private void grdPayments_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
    {
    }
    thus cannot even attach an "onClick" attribute to it, had it been a normal button.
    please advise.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 3
    Last Post: 05-19-2003, 10:31 AM
  2. Replies: 3
    Last Post: 11-26-2002, 03:40 PM
  3. Problem using delete method in Datagrid
    By Giovanna in forum ASP.NET
    Replies: 1
    Last Post: 10-04-2001, 12:10 PM
  4. Confirmation before deleting in DataGrid
    By newbie in forum ASP.NET
    Replies: 0
    Last Post: 06-19-2001, 01:13 PM
  5. Replies: 0
    Last Post: 03-27-2001, 08:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links