using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using
Utilities;
namespace
Repeater
{
public partial class RepeaterExample1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DBConnect objDB = new DBConnect();
String strSQL = "SELECT * FROM Product";
//
Set the datasource of the Repeater control and bind
the data
rptProducts.DataSource
= objDB.GetDataSet(strSQL);
rptProducts.DataBind();
}
}
}
}