System.Web.UI.WebControls.ProfileParameter Class

Binds the value of an ASP.NET Profile property to a parameter object.

See Also: ProfileParameter Members

Syntax

public class ProfileParameter : Parameter

Remarks

You can use the System.Web.UI.WebControls.ProfileParameter class to bind the value of an ASP.NET Profile parameter to a parameter used in a parameterized SQL query, business object method, or filtering expression.

The System.Web.UI.WebControls.ProfileParameter class provides the ProfileParameter.PropertyName property in addition to those inherited from the System.Web.UI.WebControls.Parameter class. The ProfileParameter.PropertyName property identifies the ASP.NET Profile property from which the System.Web.UI.WebControls.ProfileParameter retrieves a value.

Note:

Controls that bind data to the parameter might throw an exception if a System.Web.UI.WebControls.ProfileParameter object is specified but no corresponding profile property is set. Similarly, they might display no data if the profile property is set with null. Set the Parameter.DefaultValue property to avoid these situations where appropriate.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0