XPathBinder.Select Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Uses an XPath data-binding expression at run time to return a list of nodes.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticSelect(Object, String)

Uses an XPath data-binding expression at run time to return a list of nodes.

System_CAPS_pubmethodSystem_CAPS_staticSelect(Object, String, IXmlNamespaceResolver)

Uses an XPath data-binding expression at run time to return a list of nodes, using the IXmlNamespaceResolver object specified to resolve namespace prefixes in the XPath expression.

You can use the overloaded Select 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.

Return to top
Show: