private void bindRepeater() { EComDatasetTableAdapters.AddressTableAdapter adap1 = new EComDatasetTableAdapters.AddressTableAdapter(); EComDataset.AddressDataTable tab1 = adap1.GetAddressesByUser(HttpContext.Current.User.Identity.Name); rpAddresses.DataSource = tab1; rpAddresses.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { EComDatasetTableAdapters.AddressTableAdapter adap1 = new EComDatasetTableAdapters.AddressTableAdapter(); EComDataset.AddressDataTable tab1 = adap1.GetAddressesByUser(HttpContext.Current.User.Identity.Name); rpAddresses.DataSource = tab1; rpAddresses.DataBind(); } }