First of all, thanks for your help and advice so far - much appreciated.
The project I am working on is a little different in that an XML datasource is being used via a bespoke provider, so I can't quite link things up the way described above. However, I have tried this with the appropriate adjustment, using the HyperLinkField.
What you have kindly suggested certainly works. However, it does not look like it's a suitable solution as there is a more general issue in that this is an AJAX enabled website.
The idea of the UpdatePanel, and the two normal Panels within, is that the transition should be visibly seamless between viewing a list of data items in the master view (in the 1st panel) and the details of a particular selected item in the details view (the 2nd panel).
In other words, it relies upon a partial page postback on the UpdatePanel.
However, when the link for a hyperlink control or hyperlinkfield is clicked, the page is requested as a completely new request and therefore does not cause a postback to occur. This results in the whole page loading again, which is not what is desired here.
I appreciate I should have mentioned this before and apologise for this.... it just did not occur to me.
The project also uses a masterpage.
The UploadPanel has both Load() and PreRender() events. Within these events is the code that determines which panel is displayed upon a partial page postback. So, prior to the content of these event handlers executing, I need to determine which item was selected from the GridView (each item in the Grid is identified by a unique string ID).
I am now struggling a little with this one. I've been through a few books and am still not getting anywhere. Frustrating.
Do you have any other ideas on this?
Thanks - Darren