I'm using a web-service to pull data from a SharePoint list which is then cleaned up and bound to a Rotator. During debug I can see that the XML is clean, and when checking the rendered source I can see that there are the appropriate number of items generated. The dummy text 'Boo!' even rotates twice as expected. However, I cannot seem to bind to the underlying elements such as <%# XPath("title") %>.
Generated XML (sw)
Code behind
ASPX
Any ideas?
Generated XML (sw)
| <?xml version="1.0" encoding="utf-16"?> |
| <newsfeed xmlns="http://schemas.microsoft.com/sharepoint/soap/"> |
| <article> |
| <title>Some Text here.</title> |
| <author>Smith, Steve</author> |
| <created>2008-02-04 16:28:43</created> |
| <body>Some Text here.</body> |
| </article> |
| <article> |
| <title>Some Text here.</title> |
| <author>Doe, John</author> |
| <created>2010-01-21 14:10:10</created> |
| <body>Some Text here.</body> |
| </article> |
| </newsfeed> |
Code behind
| // code to retrieve and transform webservice feed above here |
| XmlDataSource1.Data = sw.ToString(); |
| rr_TacNews.DataBind(); |
ASPX
| <asp:XmlDataSource ID="XmlDataSource1" runat="server"></asp:XmlDataSource> |
| <div id="webpane"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadRotator ID="rr_TacNews" runat="server" ScrollDirection="Left" FrameDuration="10000" |
| Height="800px" Width="100%" ForeColor="White" DataSourceID="XmlDataSource1"> |
| <ItemTemplate> |
| <div style="width: 576px; padding: 12px;"> |
| Boo! |
| <asp:Label ID="Label1" runat="server" Text='<%# XPath("title") %>'></asp:Label><br /> |
| <asp:Label ID="Label2" runat="server" Text='<%# XPath("author") %>'></asp:Label><br /> |
| <asp:Label ID="Label3" runat="server" Text='<%# XPath("created") %>'></asp:Label><br /> |
| <asp:Label ID="Label4" runat="server" Text='<%# XPath("body") %>'></asp:Label> |
| </div> |
| </ItemTemplate> |
| </telerik:RadRotator> |
Any ideas?
