System.Web.UI.PageTheme.XPath Method

Evaluates an XPath data-binding expression using the specified format string to display the result.

Syntax

protected string XPath (string xPathExpression, string format)

Parameters

xPathExpression
The XPath expression to evaluate. For details, see System.Web.UI.XPathBinder.
format
A .NET Framework format string to apply to the result.

Returns

A string that results from the evaluation of the data-binding expression and conversion to a string type.

Remarks

The PageTheme.XPath(string, string) method uses the Page.GetDataItem method to resolve the System.Xml.XPath.IXPathNavigable object reference that the expression is evaluated against.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0