Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/08/2010, 07:47
chuchufuentes
 
Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años
Puntos: 3
Pregunta search y mostrar imagen en datalist

Trato de mostrar unas imagenes en un datalist y solo me sale una figurita muy pequeña,o no me muestra la tipica X que es cuando no consigue la imagen.
Solo hago una busqueda de carro y modelo y que me muestre (imagen) las piezas o partes de esa marca y modelo en un datalist

Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim sql As String = "SELECT * FROM partes where marcaparte = '" & ddlmarca.SelectedItem.Value & "' and modeloparte = '" & ddlmodelo.SelectedItem.Value & "' and anoparte = " & ddlano.SelectedItem.Value & ""
Dim dtCustomer As DataTable = customer.readtable(sql)
If dtCustomer.Rows.Count > 0 Then
dlpartes.DataSource = dtCustomer
dlpartes.DataBind()

End If
End Sub


<ItemTemplate>
<table>
<tr>
<td style="width: 100px; height: 32px">
<asp:Image ID="Image2" runat="server" Height="100px" Width="115px" ImageUrl='<%# DataBinder.Eval(Container.DataItem,"fotoparte") %>' />
</td>
<td style="width: 100px; height: 32px">
<asp:Label ID="lblparte" runat="server" Text='<%# Eval("partenum") %>' Width="138px"></asp:Label></td>
<td style="width: 263px; height: 32px">
<asp:Label ID="lbldescriparte" runat="server" Text='<%# Eval("partdescripcion") %>'
Width="256px"></asp:Label></td>
</tr>
</table>

</ItemTemplate>

que debo hacer?

me muestra la descripcion y codigo pero NO la foto