protected void Page_Load(object sender, EventArgs e)
 {
     CustomerInformationDataContext dataContext = new CustomerInformationDataContext();
     Repeater1.DataSource = from cust in dataContext.Customers
                            select cust;
     Repeater1.DataBind();
 }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        CustomerInformationDataContext dataContext = new CustomerInformationDataContext();

        Repeater1.DataSource = from cust in dataContext.Customers
                               select cust;

        Repeater1.DataBind();
    }