Ok, I need help or a good example of how to do this.
Here's what I have been attempting, using the rss demo example, I can get an rss feed to display but I can't do it with simple xml ...
Here's the xml i'm using:
Here's the aspx page code ...
I also tried:
What's wrong with it as I get nothing ... I have nothing in the VB codebehind ....
Is the XML formatted properly for this or is there a better example you can provide of how this would work?
Thanks in advance!
TT
Here's what I have been attempting, using the rss demo example, I can get an rss feed to display but I can't do it with simple xml ...
Here's the xml i'm using:
<?xml version="1.0" encoding="utf-8" ?> |
<RoatatorItems> |
<Item link="http://www.link1.com" title="This is a test 1" /> |
<Item link="http://www.link2.com" title="This is a test 2" /> |
<Item link="http://www.link3.com" title="This is a test 3" /> |
<Item link="http://www.link4.com" title="This is a test 4" /> |
<Item link="http://www.link5.com" title="This is a test 5" /> |
</RoatatorItems> |
Here's the aspx page code ...
<asp:XmlDataSource ID="XmlDataSource1" runat="server" |
DataFile="~/NewsRotator.xml" XPath="/RotatorItems/Items"></asp:XmlDataSource> |
<telerik:RadRotator ID="RadRotator1" runat="server" |
DataSourceID="XmlDataSource1" Height="50px" Width="901px"> |
<ItemTemplate> |
<div class="newsFeed"> |
<strong><a href='<%# XPath("link") %>'> |
<%# System.Web.HttpUtility.HtmlEncode(XPath("title").ToString()) %> |
</a></strong> |
</div> |
</ItemTemplate> |
</telerik:RadRotator> |
I also tried:
<ItemTemplate> |
<div class="newsFeed"> |
<strong><a href='<%# XPath("link") %>'> |
<%#XPath("title")%> |
</a></strong> |
<br /> |
</div> |
</ItemTemplate> |
What's wrong with it as I get nothing ... I have nothing in the VB codebehind ....
Is the XML formatted properly for this or is there a better example you can provide of how this would work?
Thanks in advance!
TT