<asp:DataList ID="dtlist" runat="server" RepeatColumns="4" CellPadding="5"> <ItemTemplate> <asp:Image Width="100" ID="Image1" ImageUrl='<%# Bind("~/sqldread2/{0}") %>' runat="server" /> <br /> <ItemStyle BorderColor="Brown" BorderStyle="dotted" BorderWidth="3px" HorizontalAlign="Center" VerticalAlign="Bottom" /> </asp:DataList>
while (sqldread2.Read()) { Context.Response.BinaryWrite((byte[])sqldread2["Image"]); Context.Response.ContentType = "image/jpg"; al.Add(sqldread2); sDatAdp.SelectCommand = scmd1; dtlist.DataSource = sqldread2; dtlist.DataBind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)