asp.net.ph

SessionParameter Class

System.Web.UI.WebControls Namespace


.NET Framework version 2.0

Binds the value of a session variable to a parameter object.

SessionParameter Class Members

Collapse   Constructors

Visibility Constructor Parameters
public SessionParameter ( )
public SessionParameter ( String name , String sessionField )
public SessionParameter ( String name , DbType dbType , String sessionField )
public SessionParameter ( String name , TypeCode type , String sessionField )

Collapse   Properties

Visibility Name Value Type Accessibility
public SessionField String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected Clone ( ) Parameter

Remarks

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.

See Also

Using Parameters with Data Source Controls Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph