System.Web.UI.DataBinder.GetPropertyValue Method

Retrieves the value of the specified property of the specified object, and then formats the results.

Syntax

public static string GetPropertyValue (object container, string propName, string format)

Parameters

container
The object that contains the property.
propName
The name of the property that contains the value to retrieve.
format
A string that specifies the format in which to display the results.

Returns

The value of the specified property in the format specified by format.

Remarks

This version of the DataBinder.GetPropertyValue(object, string, string) method is used to retrieve and format the value of a property in an object.

Requirements

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