Image in web user control
Hi
I'm a beginner at this so be patient with me :)
Here's my problem:
I have a listview which shows names. Above my listview I have a web user control that has to show a picture of each person in the listview. I don't really know to make it do that...
Any suggestions?
PHP Code:
<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/JazzPeoplePage.master" AutoEventWireup="false"
CodeBehind="Default.aspx.vb" Inherits="JazzPeople.web._Default" %>
<%@ Register src="wucPhoto.ascx" tagname="wucPhoto" tagprefix="uc1" %>
<asp:Content ID="content" runat="server" ContentPlaceHolderID="MainContent">
<uc1:wucPhoto ID="wucFoto1" runat="server" />
<asp:ListView ID="ListView1" runat="server" DataSourceID="ObjectDataSource1">
<ItemTemplate>
<br />
<%#Eval("Name") & " "& Eval("FirstName") %>
<br />
<asp:LinkButton ID="btnAddToFavo" runat="server" Text="Add to favorites" </asp:LinkButton> -
<br />
</ItemTemplate
</asp:ListView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetComposers" TypeName="JazzPeople.BL.Composer">
</asp:ObjectDataSource>
</asp:Content>
Re: Image in web user control
There are two different ways to do this..
#1). Reload the page with the correct image in the User control.
#2). Use JavaScript on the page and load only the image.