Hi.
I have some folders in my solution such as UserAccount, Admin, etc.
I bind rotator to XmlDataSource, but when I'm not in site root (ex: MySiteName/Admin/Default.aspx) rotator does not work.
Here is the code:
I have some folders in my solution such as UserAccount, Admin, etc.
I bind rotator to XmlDataSource, but when I'm not in site root (ex: MySiteName/Admin/Default.aspx) rotator does not work.
Here is the code:
<telerik:RadRotator ID="RadRotator1" runat="server" Height="150px" ItemHeight="150px" ItemWidth="600px" ScrollDirection="Up" ScrollDuration="4000" Width="600px" DataSourceID="XmlDataSource1"> <ItemTemplate> <div> <a href="<%# XPath("href") %>"> <img src="IMG/<%# XPath("filename") %>" alt="IMG/<%# XPath("filename") %>" style="border: 0px;"/> </a> </div> </ItemTemplate> </telerik:RadRotator> </div> <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/Banners.xml" ></asp:XmlDataSource>