System.Web.UI.PageTheme.XPath Method

Uses the TemplateControl.XPath(string, string, System.Xml.IXmlNamespaceResolver) method of the PageTheme.Page control that the instance of the System.Web.UI.PageTheme class is associated with to evaluate an XPath data-binding expression.

Syntax

protected string XPath (string xPathExpression, string format, System.Xml.IXmlNamespaceResolver resolver)

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.
resolver
A set of prefix and namespace mappings used for namespace resolution.

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, System.Xml.IXmlNamespaceResolver) 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