System.Web
2.0.0.0
System.Object
You can use the overloaded method of this class to bind to the result of an XPath expression executed against an object that implements the interface, such as an . You can use the method to retrieve the results of an XPath expression executed against an object as an list of nodes. This list of nodes can be enumerated directly or assigned to the DataSource property of a list control, such as a or .
You can use a simplified version of data-binding syntax when using the methods declaratively. Instead of calling XPathBinder.Eval(Container.DataItem, ) you can use XPath(). Similarly, instead of calling XPathBinder.Select(Container.DataItem, ), you can use XPathSelect() to retrieve an set of nodes. When using this simplified syntax, the and methods assume a default Container.DataItem context object.
For more information about data binding to ASP.NET server controls, see Data-Binding Expression Syntax.
Provides support for rapid application development (RAD) designers to parse data-binding expressions that use XPath expressions. This class cannot be inherited.
Method
System.Object
To be added.
You can use the method declaratively if you want to simplify the casting of an XML node to a text string to be displayed on a browser. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the data-binding expression.
For any of the list ASP.NET server controls, such as , , or , the parameter should be Container.DataItem. If you are binding against the page, the parameter should be Page.
Evaluates XPath data-binding expressions at run time.
An that results from the evaluation of the data-binding expression.
The object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.
2.0.0.0
Method
System.String
To be added.
To learn more about format strings in the .NET Framework, see Formatting Overview.
You can use the method declaratively if you want to simplify the casting of an XML node to a text string to be displayed in a browser. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the data-binding expression.
For any of the list ASP.NET server controls, such as , , or , the parameter should be Container.DataItem. If you are binding against the page, the parameter should be Page.
Evaluates XPath data-binding expressions at run time and formats the result as text to be displayed in the requesting browser.
A that results from the evaluation of the data-binding expression and conversion to a string type.
The object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.
A .NET Framework format string, similar to those used by , that converts the object (which results from the evaluation of the data-binding expression) to a that can be displayed by the requesting browser.
2.0.0.0
Method
2.0.0.0
System.Object
To be added.
You can use the method declaratively if you want to simplify the casting of an XML node to a text string to be displayed in a browser. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the data-binding expression. The data-binding expression includes the XPath expression and an object to resolve the namespace reference.
For any of the list ASP.NET server controls, such as , , or , the parameter should be Container.DataItem. If you are binding against the page, the parameter should be Page.
Evaluates XPath data-binding expressions at run time and formats the result as text to be displayed in the requesting browser, using the object specified to resolve namespace prefixes in the XPath expression.
A that results from the evaluation of the data-binding expression.
The object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.
The object used to resolve namespace prefixes in the XPath expression.
Method
2.0.0.0
System.String
To be added.
You can use the method declaratively if you want to simplify the casting of an XML node to a text string to be displayed in a browser. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the data-binding expression. The data-binding expression includes the XPath expression and an object to resolve the namespace reference.
For any of the list ASP.NET server controls, such as , , or , the parameter should be Container.DataItem. If you are binding against the page, the parameter should be Page.
Evaluates XPath data-binding expressions at run time and formats the result as text to be displayed in the requesting browser, using the object specified to resolve namespace prefixes in the XPath expression..
A that results from the evaluation of the data-binding expression and conversion to a string type.
The object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.
A .NET Framework format string, similar to those used by , that converts the object (which results from the evaluation of the data-binding expression) to a that can be displayed by the requesting browser.
The object used to resolve namespace prefixes in the XPath expression.
Method
System.Collections.IEnumerable
To be added.
You can use the 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.
For any of the list ASP.NET server controls, such as , , or , the parameter should be Container.DataItem.
Uses an XPath data-binding expression at run time to return a list of nodes.
An list of nodes.
The object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.
2.0.0.0
Method
2.0.0.0
System.Collections.IEnumerable
To be added.
You can use the 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 object to resolve the namespace reference.
For any of the list ASP.NET server controls, such as , , or , the parameter should be Container.DataItem.
Uses an XPath data-binding expression at run time to return a list of nodes, using the object specified to resolve namespace prefixes in the XPath expression.
An list of nodes.
The object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.
The object used to resolve namespace prefixes in the XPath expression.