Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detailsview delete - how do i get record id?

Status
Not open for further replies.

jondow

Programmer
Oct 19, 2006
45
GB
Hi, I have a detailsview with 3 rows (record id, name, details) plus the command row and the paging row. Using the ItemDeleted event I want to discover the record id of the record I'm deleteing... can anyone tell me how to do this?

Im using asp.net with VB and VS 2005.

Thanks In Advance!
 
Something like:
Code:
Protected Sub DetailsView1_ItemDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewDeleteEventArgs) Handles DetailsView1.ItemDeleting
   Dim iord As IOrderedDictionary = e.Values
   Dim myKey as string = iord.Item(index Or key).ToString
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top