ProfileParameter.Evaluate Method

Updates and returns the value of the ProfileParameter object.

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

protected:
virtual Object^ Evaluate (
	HttpContext^ context, 
	Control^ control
) override
protected Object Evaluate (
	HttpContext context, 
	Control control
)
protected override function Evaluate (
	context : HttpContext, 
	control : Control
) : Object
Not applicable.

Parameters

context

The current HttpContext of the request.

control

A Control that is associated with the Web Form where the ProfileParameter is used.

Return Value

An object that represents the updated and current value of the parameter. If the context or the ASP.NET Profile is null (Nothing in Visual Basic), the Evaluate method returns null.

The ProfileParameter attempts to bind to the value of the Profile property every time the Evaluate method is called.

The context parameter is used by the Evaluate method to retrieve the ASP.NET Profile that the ProfileParameter binds to. The control parameter is ignored.

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

ADD
Show: