ProfileParameter Class
Collapse the table of content
Expand the table of content

ProfileParameter Class

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

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public class ProfileParameter : Parameter
public class ProfileParameter extends Parameter
public class ProfileParameter extends Parameter
Not applicable.

You can use the 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 ProfileParameter class provides the PropertyName property in addition to those inherited from the Parameter class. The PropertyName property identifies the ASP.NET Profile property from which the ProfileParameter retrieves a value.


Controls that bind data to the parameter might throw an exception if a ProfileParameter object is specified but no corresponding profile property is set. Similarly, they might display no data if the profile property is set with a null reference (Nothing in Visual Basic). Set the DefaultValue property to avoid these situations where appropriate.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2016 Microsoft