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>

Advertisements

3 Responses to “How to apply marquee in Datalist and Repeater Control?”

  1. avinash Says:

    thank you. it works fine.

    • Chandra Dev Says:

      You are always welcome.

  2. 525 Says:

    good


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: