hi try this
<asp:datalist id=""DataList1"" runat=""server"" mode="hold" xmlns:asp="#unknown" /> <ItemTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageUrl", "~/Images\\{0}") %>' /><br />
and give code in page load..
SqlConnection con=new SqlConnection(..........etc);
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select * from tablename";
cmd.Connection = con;
con.Open();
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(dt);
DataList1.DataSource = dt;
DataList1.DataBind();
cmd.Dispose();
con.Close();
if it is your solution
vote and accept
thanks