I've tried that. The master page has a GridView, with DataKeyNames = SSN, and in the GridView1_SelectedIndexChanged sub, I've got:
Session("SSN") = GridView1.SelectedDataKey
Response.Redirect("..\Res_Client\DetailPage.aspx")
And then on the Detail page, I've got an AccessDataSource with a WHERE clause of Source = Session and Session field = SSN
But when run the Master page and click on a "Select" for a row, I get an error message about "Object must implement IConvertible"
Somebody told me to use Ctype(), but didn't elaborate on where/how to put it. I tried it in the Master page code:
Session("SSN") = CType(GridView1.SelectedDataKey, DataKey)
, but it was no help. (The data is in an Access mdb, and SSN is a text field)
Thanks for your help
Mark
|