<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"> </asp:ScriptManager> <div style="removed:relative; width:100%; height:20%; overflow-x:auto;"> //code for single line listview placed here which includes <asp:ListView ID="ListView1" runat="server" DataKeyNames="ID" DataSourceID="SqlDataSource1" OnItemCommand="ListView1_ItemCommand"> //Item template is designed to display thumbs <ItemTemplate> <td runat="server" style=""> <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("Serial") %>'><img src='<%# "/AssetsBack/Thumbs/"+Eval("Serial")+".jpg" %>'" /></asp:LinkButton> <br /> </td> </ItemTemplate> </div> <div style="removed:relative; width:100%; height:80%;"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <img id="imag" runat="server" style="width:100%; height:100%;" /> </ContentTemplate> </asp:UpdatePanel> </div>
protected void ListView1_ItemCommand(object sender, ListViewCommandEventArgs e) { string im = e.CommandArgument.ToString(); imag.Attributes.Add("src", "/AssetsBack/" + im + ".jpg"); ListView1.DataBind(); } // this is designed to display images corresponding to the thumb that is clicked in listview
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)