Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir. i build a website. in which want to show my clientlist with photo of the client. i am using listview to bind images dynamically. it show all photos at the time of page load. but i need to show one photo then slide to next photo. like slideshow. anyone have solution of it.

my code is :-

ASP.NET
 <asp:ListView ID="lvAlbums" runat="server" GroupItemCount="2"   >
    <LayoutTemplate>
        <table id="itemPlaceholderContainer">
            <tr runat="server" id="itemPlaceholder">
            </tr>
        </table>
    </LayoutTemplate>
    <LayoutTemplate>
        <table>
            <tr id="groupPlaceholder" runat="server">
            </tr>
        </table>
    </LayoutTemplate>
    <GroupTemplate>
        <tr>
            <td id="itemPlaceholder" runat="server">
            </td>
        </tr>
    </GroupTemplate>
    <ItemTemplate>
        <td align="center">
            <div>
           <img alt="Photo1" id="Image1"  style="height:100px; width:150px" runat="server" src='<%# Bind("FileName", "~/Images/Clients/{0}") %>' />
           </span>
            </div>


        </td>
    </ItemTemplate>
    <GroupSeparatorTemplate>
        <tr id="Tr1" runat="server">
            <td>

            </td>
        </tr>
    </GroupSeparatorTemplate>
</asp:ListView>




C#
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      If Not Page.IsPostBack Then
          fillgrid()
      End If
  End Sub
  Public Sub fillgrid()
      Dim arr() As String
      Dim dt As New DataTable
      dt.Columns.Add("FileName")


      Dim path As String = Server.MapPath("Images\Clients\")
      Dim di As New DirectoryInfo(path)
      Dim f As FileInfo
      For Each f In di.GetFiles
          arr = f.Name.Split(".")
          dt.Rows.Add(f.Name)

      Next
      lvAlbums.DataSource = dt
      lvAlbums.DataBind()



  End Sub


What I have tried:

i am using marquee but its not working like i need..
Posted
Updated 4-Jul-16 6:40am

1 solution

 
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