1. In web.config:
    ` ...
... ...

… </configuration>`

  1. In your .aspx file:
    `
</HeaderTemplate> </table> </asp:Repeater>` 3. In your .aspx.cs file: `using System.Data; using System.Data.SqlClient; protected Repeater rep1; private void Page_Load(object sender, System.EventArgs e) { SqlConnection cn = new SqlConnection( System.Configuration.ConfigurationSettings.AppSettings["connStr"] ); SqlDataAdapter dap = new SqlDataAdapter("Select col1,col2 from sometable",cn); Dataset ds = new DataSet(); dap.Fill(ds,"somename"); rep1.DataSource = ds.Tables["somename"]; rep1.DataBind(); }`
<%# DataBinder.Eval(Container.DataItem, "col1") %> <%# DataBinder.Eval(Container.DataItem, "col2") %>