Jump to content

Identifying which Button was clicked


Paulhar

Recommended Posts

Hi All,I am using a do...while loop to retrieve records from a recordset. Inside the loop I am creating an 'Edit' button - so I have one button for each record.When the user clicks on one of the buttons I want to edit that record but how can I know which button has been clicked ?CheersPaul

Link to comment
Share on other sites

I'm assuming that you only want to do one record at a time.the onclick event of the button could be edit.asp?id=##### and insert whatever variable you are using as you go through each record on the display page.See the ASP101 sample for the db 3 in one page http://www.asp101.com/samples/db_edit.asp change the links to buttons etc...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...