I have a screen, which through a List View, displays a photo per record listed.
<td class="col-md-1 text-center" style="vertical-align: middle">
<asp:Image runat="server" ImageUrl='<%# "~/ControlePatio/Veiculo/ExibirFotos.aspx?CodigoFoto=" + Eval("Foto") %>' Width="130" Height="90" />
</td>
The photos are saved in the database and the problem is that for each record found, a select is done on the "ViewPhotos" page, which returns an array of bytes. This factor influences system performance when many logs are displayed on this screen.
I would like to not have to do this other select to populate the Image component.