Hello,
I have to be missing something very easy here. I have a radRotator that works when I reference the Telerik rss feed but fails when I reference a local XML file. I know it reads because putting a breakpoint catches it during the read and further view source show the output HTML with the values from the XML file for the list items so....What simple thing am I missing?
HTML Code:
No code behind worth lokking at. Here is the XML doc structure:
Thank You for your assistance
JB
I have to be missing something very easy here. I have a radRotator that works when I reference the Telerik rss feed but fails when I reference a local XML file. I know it reads because putting a breakpoint catches it during the read and further view source show the output HTML with the values from the XML file for the list items so....What simple thing am I missing?
HTML Code:
<
table
id
=
"tbl_Basics"
cellpadding
=
"0"
cellspacing
=
"0"
border
=
"0"
width
=
"220"
>
<
tr
>
<
td
>
<
a
href='<%# XPath("EventLink").ToString()%>' style="cursor: pointer; text-decoration: none; color: Black; background-image: url('images/Mondaytest.png');"></
a
>
<
telerik:RadRotator
ID
=
"rotatr_ChurchEvents"
RotatorType
=
"AutomaticAdvance"
ScrollDirection
=
"Up"
ScrollDuration
=
"4000"
runat
=
"server"
Width
=
"220"
DataSourceID
=
"XMLChurchEvents"
ItemWidth
=
"220"
Height
=
"330"
ItemHeight
=
"64"
FrameDuration
=
"1"
InitialItemIndex
=
"-1"
CssClass
=
"rotator"
>
<
ItemTemplate
>
<
div
class
=
"itemTemplate"
onclick
=
"document.location='<%# XPath("
EventLink").ToString()%>'" style="background-image: url('images/Mondaytest.png');">
<
div
class
=
"dateTime"
>
<
div
class
=
"time"
>
<%# (this.GetTimeOnly(XPath("EventTime").ToString())) %>
</
div
>
<
div
class
=
"date"
>
<%# XPath("EventDate").ToString() %>
</
div
>
</
div
>
<
div
class
=
"title"
>
<
span
>
<%# System.Web.HttpUtility.HtmlEncode(XPath("EventText").ToString())%>
</
span
>
</
div
>
</
div
>
</
ItemTemplate
>
</
telerik:RadRotator
>
<
asp:XmlDataSource
ID
=
"XMLChurchEvents"
runat
=
"server"
XPath
=
"ChurchEvents/Events/EventDetails"
DataFile
=
"XML/ChurchEvents.xml"
/>
</
td
>
</
tr
>
</
table
>
No code behind worth lokking at. Here is the XML doc structure:
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
ChurchEvents
>
<
Events
>
<!-- USE This Section for weekly events-->
<
EventDetails
>
<
EventText
>Worship Service</
EventText
>
<
EventTime
>11:00</
EventTime
>
<
EventDate
>Sunday</
EventDate
>
<
EventLink
></
EventLink
>
</
EventDetails
>
<!-- Use this section for special events-->
<
EventDetails
>
<
EventText
>Financial Peace</
EventText
>
<
EventTime
>02:00</
EventTime
>
<
EventDate
>Sat. Feb. 27</
EventDate
>
<
EventLink
></
EventLink
>
</
EventDetails
>
</
Events
>
</
ChurchEvents
>
Thank You for your assistance
JB