as Riki explains, add it to the URL DataNavigateUrlField as the data binds
and retrieve it on page load at the recipient page following a click - stick
it in the session then. You could also use the eval method to load it into
session as the first page loads so its already there before your click
occurs.
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"Wernfried Schwenkner" <we**************@schwenkner.de> wrote in message
news:MPG.1c7b0f6688ce39fe9896c4@merlin...
In article <OK**************@TK2MSFTNGP10.phx.gbl>,
ti*****@despammed.com says... Try this
In page1.aspx code:
Session["MyDataSet" + Session.SessionId] = dsObject;
In page2.aspx code:
Dataset dsObject = Session["MyDataSet" + Session.SessionId];
if (null != dsObject)
{
// Do something with the dataset.
}
Sorry, if I didn't explain it very well. I know how to pass a variable
from page to page with the Session-property.
My problem is, in the datagrid of page 1 I have a link button which
navigates to page 2. When clicking this, the Id shall be inserted into
the session property. How can this be done?
--
Sleepless in Berlin
W. Schwenkner