Click here to Skip to main content
15,904,655 members
Please Sign up or sign in to vote.
2.14/5 (3 votes)
I have bind the datalist. i want to show that datalist like moving text.so I have used marquee tag. when i used marquee,it scroll but does not scroll continuously.

ASP.NET
 <marquee  id="marq2" direction="left" truespeed="truespeed" loop="-1"  >
<asp:DataList ID="DataList2" runat="server"> <ItemTemplate>
<asp:Image ID="Image5" runat="server" ImageUrl='<%#Eval("imgpath") %>' /> 
 </ItemTemplate>
 </asp:DataList>
<marquee>
Posted
Comments
Pablo Aliskevicius 3-Mar-15 8:33am    
What happens if you enclose your DataList in a div with a max width?
See here:
http://jsfiddle.net/vg0a2h83/1/
ManojanbU 4-Mar-15 0:01am    
thanks to reply.. already i have applied max width then marquee runs properly,but the design is collapsed

1 solution

I hope you are looking for this:

http://jscroller2.markusbordihn.de/example/left/[^]
 
Share this answer
 
Comments
ManojanbU 4-Mar-15 0:08am    
Due to use datalist ,it is not suited.if i applied this it moves but suddenly blinked..

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