SqlDataSource.Deleting event

  • Thread starter Thread starter David C
  • Start date Start date
D

David C

I want to use the deleting event on a gridview (using link button) to get
the ID of the row being deleted so I can make sure that ID is not in another
table. How do I reference this in my VB code in the SqlDataSource.Deleting
event? Thank you.

David
 
One way is to check the Parameters collection of the Command (of type
SqlCommand) property of the argument passed to the event handler.
 
Back
Top