How to apply marquee in Datalist and Repeater Control?


Hi

Here is simple syntax to do this task

<marquee  direction=”up” truespeed=”truespeed” scrollamount=”1″ scrolldelay=”50″ loop=”-1″ onmousemove=”this.scrollAmount=0″ onmouseout=”this.scrollAmount=1″>

<asp:DataList ID=”datalistNews” runat=”server”   RepeatColumns=”0″>
<ItemTemplate>
<a href=”NewsDetail.aspx?id=<%#Eval(“NewsId”)%>”><asp:Label ID=”LblHeadline” Text='<%#Eval(“Headline”)%>’ Font-Bold=”true” runat=”server” /></a><br />
<asp:Label ID=”lblShortDesc” Text='<%#Eval(“ShortDesc”)%>’  runat=”server” />
</ItemTemplate>
</asp:DataList>
</marquee>

3 thoughts on “How to apply marquee in Datalist and Repeater Control?

  1. avinash October 11, 2011 / 11:50 am

    thank you. it works fine.

  2. 525 March 20, 2012 / 5:26 am

    good

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.