开发者

What is difference between the xpath and xpathselect in asp.net datalist?

开发者 https://www.devze.com 2023-02-11 04:06 出处:网络
I g开发者_如何学Pythonot this question from programming asp.net and web-site called quickstart.asp.net.

I g开发者_如何学Pythonot this question from programming asp.net and web-site called quickstart.asp.net. In this it is mentioned that xpath and xpathselect is how used and syntex but it is not mentioned how it differs in work, i ckecked but both are giving same result.


XPathSelect() and XPath() have different return types.

From MSDN,

XPathSelect()

returns a node collection that implements the IEnumerable interface.

XPath() returns

An object that results from the evaluation of the data-binding expression.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号