DataBinder.GetIndexedPropertyValue Method (Object, String, String)
Retrieves the value of the specified property for the specified container, and then formats the results.
Assembly: System.Web (in System.Web.dll)
static member GetIndexedPropertyValue : container:Object * propName:string * format:string -> string
Parameters
- container
-
Type:
System.Object
The object reference against which the expression is evaluated. This must be a valid object identifier in the specified language for the page.
- propName
-
Type:
System.String
The name of the property that contains the value to retrieve.
- format
-
Type:
System.String
A string that specifies the format in which to display the results.
Return Value
Type: System.StringThe value of the specified property in the format specified by format.
The GetIndexedPropertyValue method invokes the GetIndexedPropertyValue method, and then uses the String.Format method to format the result as specified in the format parameter. A .NET Framework format string (like those used by String.Format) converts the Object instance returned by the data-binding expression to a String object.
Exceptions that are thrown for the GetIndexedPropertyValue method apply to the GetIndexedPropertyValue method as well.
Available since 1.1