Hey all;
I have a gridview which display a list of records. The user can then use the select command to select a record. I would then like to redirect the user to a page which displays the full record details and allows them to edit the record.
However I am having trouble passing the id of the record to the next page. At the moment, when the user clicks the required record an event fires which populates a hidden field (hdnId) with the id of the record, and then it does a server.transfer to the detail page.
I have set the previouspage directive in the detail page, however, as a postback actually wasn't fired in the list page I am unable to access the value of the hidden field. I have browsed through the functionality of the gridview control and it doesn't seem to have the ability to do crosspageposting or general postbacks.
Can anybody provide me with some advice on how to get around this problem?
Any and all help is greatly appreciated.
Sean.
I have a gridview which display a list of records. The user can then use the select command to select a record. I would then like to redirect the user to a page which displays the full record details and allows them to edit the record.
However I am having trouble passing the id of the record to the next page. At the moment, when the user clicks the required record an event fires which populates a hidden field (hdnId) with the id of the record, and then it does a server.transfer to the detail page.
I have set the previouspage directive in the detail page, however, as a postback actually wasn't fired in the list page I am unable to access the value of the hidden field. I have browsed through the functionality of the gridview control and it doesn't seem to have the ability to do crosspageposting or general postbacks.
Can anybody provide me with some advice on how to get around this problem?
Any and all help is greatly appreciated.
Sean.