-
January 23rd, 2017, 03:51 AM
#1
.Net Rss XML feed to datalist and an expression
I am trying to figure out the syntax
to load a Rss feed into a datalist and also limit the amount of records displayed with an expression
So out of all the listings, I just want the first few like you would do in SQL, Top 5 for example.
This is what I tried, but it did not work with the expression
Dim xdoc As New XmlDataSource()
xdoc.DataFile = "http://"
xdoc.XPath = "rss/channel/item"
Dim expression1 As XPathExpression = XPathExpression.Compile("//*position() <= 5]")
DataList_rssTop.DataSource = expression1
DataList_rssTop.DataBind()
Any help is appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|