Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i am displaying the images in datalist by getting the data from the database.here the images in datalist will scroll horizontaly,i had 5 images in database.while displaying it is displaying 5 images but after completing of the 5 images cycle only it is displaying the first image.here i want to display the images continuously.
Posted
Updated 26-Dec-12 18:12pm
v5
Comments
Sergey Alexandrovich Kryukov 26-Dec-12 23:41pm    
Is it a question?
—SA
ntitish 27-Dec-12 0:08am    
sir i modified the question did u get the question....
[no name] 26-Dec-12 23:49pm    
Not a proper question.. You should provide your code.. :)
ntitish 26-Dec-12 23:59pm    
<tr><td><asp:Panel ID="panelDisplayGallery" runat="server" >

<asp:Label ID="lblAvailablePhotos" runat="server" Text="Available Photos:"
Visible="False">

<asp:Panel ID="panelslideshow" runat="server" Height="170px" BackColor="#CCCCCC" EnableViewState="False">

<marquee direction="left" onmouseover="this.stop();" önmouseout="this.start();" scrolldelay="10" loop="-1">

<asp:DataList ID="datalstGalleryDisplay" runat="server" RepeatDirection="Horizontal"
Font-Name="Verdana" Font-Size="8pt"
CellSpacing="5" Item-BorderWidth="1" Item-BorderColor="#c0c0c0"
BorderStyle="None" ItemStyle-Width="125"
CellPadding="0" ItemStyle-HorizontalAlign="Center"
ItemStyle-VerticalAlign="Bottom" GridLines="Both"
ItemStyle-BorderStyle="Solid" onitemdatabound="datalstGalleryDisplay_ItemDataBound" >
<itemtemplate>

<asp:Image ID="imageGallery" Width="150px" Height="150px" runat="server" onmouseover="zoomIncrease();" onmouseout="zoomDecrease(); />


<itemstyle borderstyle="Solid" horizontalalign="Center" verticalalign="Bottom"
="" width="125px">

</marquee>


</td></tr>
Sergey Alexandrovich Kryukov 27-Dec-12 0:47am    
Why? If you show the code, do in in the body of the question. Enclose it in "pre" tags.
—SA

Or else you can set Marquee behavior = "alternate"
 
Share this answer
 
Comments
ntitish 27-Dec-12 0:41am    
bro i not get the write answer but this also good.and one more dought i want to display the image after clicking on the particular image it should display the full image like how we see in google images.is it possible.
[no name] 27-Dec-12 0:50am    
http://www.dynamicdrive.com/style/csslibrary/category/C4/
ntitish 27-Dec-12 1:14am    
the website was awesome bro.thanks once again
[no name] 27-Dec-12 1:15am    
answer accepted and downvoted as well, how ?
ntitish 27-Dec-12 1:40am    
i cant get you.....
I see a loop property on your marquee tag. I'm guessing that -1 won't cause it to loop ?
 
Share this answer
 
Comments
ntitish 27-Dec-12 0:24am    
sir actually i tried that sir but it is not working.i forget to delete that.but for binding the images from database i used for loop in .cs code.

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