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?
Albee_JAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
DhaestConnect With a Mentor Commented:
0
 
Kyle AbrahamsSenior .Net DeveloperCommented:
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.
0
 
Albee_JAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.