Design view
<asp:repeater id="image" runat="server" xmlns:asp="#unknown">
<itemtemplate>
<asp:image id="Image1" runat="server" imageurl="<%#Eval(" img_url","~image="" {0}="" 0.jpg")="" %>"="">
CS coding
namespace
using System.Web.Configuration;
using System.Data;
protected void bind_links()
{
string query = "select * from img_url ";
string constring=WebConfigurationManager.ConnectionStrings["constr"].ConnectionString;
using (SqlConnection conn=new SqlConnection(constring))
{
using (SqlCommand comm=new SqlCommand(query))
{
using (SqlDataAdapter da=new SqlDataAdapter())
{
comm.Connection = conn;
da.SelectCommand = comm;
using (DataTable dt=new DataTable())
{
da.Fill(dt);
image.DataSource = dt;
image.DataBind();
}
}
}
}
}