Link to home
Start Free TrialLog in
Avatar of Albee_J
Albee_J

asked on

Use Stored Procedure for Delete in Asp.net 2.0 Gridview

How do I use a Store Procedure for the delete function in a gridview?
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Add a Handler:
    Protected Sub DataGrid1_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.DeleteCommand

Then call your stored procedure from within the handler.
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Albee_J
Albee_J

ASKER

Thanks