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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top