Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listview
Message
De
29/03/2008 08:36:51
 
 
À
29/03/2008 06:58:39
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01306686
Message ID:
01306698
Vues:
4
>Hi
>
>I'm using a Listview on a webform. The Listview is getting data from an SQL database. In the database I have an image name (.jpg file)
> and I want to display the image in the ItemTemplate on the Listview.
>
>I can't get the image to display. At the moment I have
>
>       <ItemTemplate>
>            <tr style="">
>                <td>
>                    <asp:Label ID="lecturerIDLabel" runat="server"
>                        Text='< %# Eval("lecturerID") % >' />
>                </td>
>                <td>
>                    <asp:Label ID="LecNameLabel" runat="server" Text='< %# Eval("LecName") % >' />
>                </td>
>                <td>
>                    <asp:Label ID="LecDescLabel" runat="server" Text='< %# Eval("LecDesc") % >' />
>                </td>
>                <td>
>
>                  <asp:Image ID="Image1" runat="server" imgurl='< %# Eval("LecPic") % >' />
>
>                </td>
>            </tr>
>        </ItemTemplate>
>
>
>LecPic contains the name of the image file.
>
>Any ideas what I'm doing wrong.

imgurl?
Shouldn't that be ImageUrl ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform