Change the source of an image by clicking a thumbnail (without jQuery preferably using UpdatePanel)

Posted by Batu on Stack Overflow See other posts from Stack Overflow or by Batu
Published on 2010-03-30T14:16:56Z Indexed on 2010/03/30 14:43 UTC
Read the original article Hit count: 258

Filed under:
|
|
|

For example, i have this ImageViewer.ascx UserControl:

<div class="ImageTumbnails">
  <asp:ListView ID="ImageList" runat="server" ItemPlaceholderID="ItemContainer">
    <LayoutTemplate>
      <asp:PlaceHolder ID="ItemContainer" runat="server" />
    </LayoutTemplate>
    <ItemTemplate>
      <asp:HyperLink runat="server" 
      NavigateUrl='<%# Link.ToProductImage(Eval("ImageFile").ToString())%>'>
        <asp:Image runat="server" ImageUrl='<%# Link.ToThumbnail(Eval("ImageFile").ToString()) %>' />
      </asp:HyperLink>
    </ItemTemplate>
  </asp:ListView>
</div>
<div class="ImageBig">
  <asp:Image ID="ProductImageBig" runat="server" ImageUrl="" />
</div>

When the thumbnail is clicked it will change the source of ProductImageBig with its hyperlink target.

How can i achieve this using UpdatePanel ? ( Or will i be able to )

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about listview