Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to add a marquee control for listview itemtemplate? i use label as itemtemplate.In listview hvae 12 images and 12 labels.example(If the label text="One" that means i don't need marquee but the text="This is the sample for marquee in asp.net" above 40 character means i need a marquee)..It is possible.advance thanks
Posted

Use Following code to marquee on label in ASP.Net


<pre lang="xml"><div>
<marquee direction="right" scrollamount="2" loop="true" width="100%" bgcolor="#ffffff" >
    <asp:Label id="lblMarquee" runat="server" ForeColor="ForestGreen" Font-Bold="True" ></asp:Label>
</marquee>
</div>





or


XML
<marquee>
<asp:Label ID="Label5m" runat="server" Font-Bold="True" Font-Names="Arial Black"
ForeColor="#109AC1" Text="News"></asp:Label>
</marquee>
 
Share this answer
 
v3
Comments
sarathtamil 3-Sep-13 9:50am    
i need a marquee with based on the label text size..
Hi...
See this one.
XML
<marquee direction="right" runat="server" style="width: 1285px; margin-left: 0px; height: 17px; margin-bottom: 0px;"><strong>
   <asp:Label ID="lblmsg" runat="server" Text="This is Marquee Text Moving From Left to Right !" ForeColor="Red" ></asp:Label></strong></marquee>

Thank u.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900