0

I'm generating a large table on a webapp using ASP. I connect to an oracle database using ADODB.Recordset and fill a table with each row of data. Whenever you click on the ID number (the first column of each row), there are 15 boxes at the bottom that will fill up with more data from the database. Heere is a screenshot I apologize for censoring the data, but you can see what I'm giong for. The table fills up with data, and then there's another table at the bottom that, when an ID number is clicked, should fill up with more info for that Id.

The problem I'm having is that, as the Recordset is stepped through to fill up the table, it gets to the end and keeps pointing at the last record in the database. I need to find a way to make it point at the record I clicked on so that it can get all of the data about that record. Any ideas how to do it?

4

1 回答 1

1

Only 2 ways I know of that will do what you want.

  1. Using JavaScript as @Ed suggested. This will give you results in your bottom table without a page refresh.
  2. Using VBScript, generate a URL with a querystring with the ID you want. Use the ID to populate your bottom table. This will require a page refresh.
于 2013-06-20T18:26:50.197 回答