Uses an XPath data-binding expression at run time to return a list of nodes, using the System.Xml.IXmlNamespaceResolver object specified to resolve namespace prefixes in the XPath expression.
- xpath
- Documentation for this section has not yet been entered.
- container
- The System.Xml.XPath.IXPathNavigable object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.
- resolver
- The System.Xml.IXmlNamespaceResolver object used to resolve namespace prefixes in the XPath expression.
An IEnumerable list of nodes.
You can use the XPathBinder.Select(object, string, System.Xml.IXmlNamespaceResolver) method declaratively if you want to simplify the retrieval of a set of nodes using an XPath query. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the XPath query and an System.Xml.IXmlNamespaceResolver object to resolve the namespace reference.
For any of the list ASP.NET server controls, such as System.Web.UI.WebControls.DataList, System.Web.UI.WebControls.DataGrid, or System.Web.UI.WebControls.Repeater, the container parameter should be Container.DataItem.