Ho un db citta.mdb con una tabella "citta" i cui campi sono:
-id
-citta
-url
Nella url ho inserito il nome dell'immagine che vorrei si visualizzasse accanto alla città, ma nn la trova, dov'è l'errore? Il codice asp.net è il seguente:
grazie
codice:<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Citta.mdb" SelectCommand="SELECT [ID], [Citta], [url] FROM [Citta]"></asp:AccessDataSource> <asp:Repeater ID="Repeater1" runat="server" DataSourceID="AccessDataSource1"> <HeaderTemplate> <table id="IDaPiacere"> <tr> <th class="NomeClasse" bgcolor="#666666">ID</th> <th class="NomeClasse" bgcolor="#666666">Città</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <asp:Label runat="server" ID="Label1" Text='<%# Eval("ID")%>' /> </td> <td> <asp:Label runat="server" ID="Label2" Text='<%# Eval("Citta")%>' /> </td> <td> <asp:Image ID="Image1" ImageUrl='<%# "localhost" & Eval("url") %>' runat="server" /> </td> </ItemTemplate> <AlternatingItemTemplate> <tr> <td style="background:#ccc; padding-left:3px;"> <asp:Label runat="server" ID="Label3" Text='<%# Eval("ID") %>' /> </td> <td style="background-color:#ccc; padding-left:3px;"> <asp:Label runat="server" ID="Label4" Text='<%# Eval("Citta") %>' /> </td> <td> <asp:Image ID="Image3" ImageUrl='<%# "localhost" & Eval("url") %>' runat="server" /> </td> </AlternatingItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> </body> </html>

grazie
Rispondi quotando
