The code below
<
telerik:RadRotator
ID
=
"dtMessage"
runat
=
"server"
FrameDuration
=
"1"
Height
=
"55px"
ItemHeight
=
"55px"
Width
=
"100%"
ItemWidth
=
"100%"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblMsg"
runat
=
"server"
Width
=
"100%"
></
asp:Label
><
br
/>
<
asp:Label
ID
=
"lblMsg2"
runat
=
"server"
Width
=
"100%"
></
asp:Label
>
<
asp:HiddenField
ID
=
"hldMsg1"
Value ='<%# Eval("Msg1") %>' runat="server" />
<
asp:HiddenField
ID
=
"hldMsg2"
Value ='<%# Eval("Msg2") %>' runat="server" />
<
asp:HiddenField
ID
=
"hldFontFace"
Value ='<%# Eval("FontFace") %>' runat="server" />
<
asp:HiddenField
ID
=
"hldFontSize"
Value ='<%# Eval("FontSize") %>' runat="server" />
<
asp:HiddenField
ID
=
"hldFontColor"
Value ='<%# Eval("FontColor") %>' runat="server" />
<
asp:HiddenField
ID
=
"hldDirection"
Value ='<%# Eval("MessageDirection") %>' runat="server" />
</
ItemTemplate
>
</
telerik:RadRotator
>
If strDirection = "Down" Then
dtMessage.ScrollDirection = RotatorScrollDirection.Down
ElseIf strDirection = "Up" Then
dtMessage.ScrollDirection = RotatorScrollDirection.Up
ElseIf strDirection = "Left" Then
dtMessage.ScrollDirection = RotatorScrollDirection.Left
dtMessage.RotatorType = RotatorType.SlideShow
Else
dtMessage.ScrollDirection = RotatorScrollDirection.Right
End If
dtMessage.ScrollDuration = intMsgSpeed * 1000