System.Web.UI.WebControls Namespace
.NET Framework version 2.0
Binds the value of a session variable to a parameter object.
You can use the SessionParameter class to bind the value of an HttpSessionState variable to a parameter used in a parameterized SQL query, business object method, or filtering expression.
The SessionParameter class provides the SessionField property in addition to those inherited from the Parameter class. The SessionField property identifies the session variable from which the SessionParameter retrieves a value.
NOTE: Controls that bind data to the parameter might throw an exception if a SessionParameter object is specified but no corresponding session variable is set. Similarly, they might display no data if the session variable is set with a a null reference (Nothing in Visual Basic) value. Set the DefaultValue property to avoid these situations where appropriate.
Using Parameters with Data Source Controls