public void refreshdata()
 {
     EntityManager<Address> mgrProduct = new EntityManager<Address>();
     Address obj = new Address();
     obj.AddressID = 9;
     List<Address> list2 = mgrProduct.Search(obj);
     lbl.Text = list2[0].AddressLine1;
 }
 public void refreshdata_edit(int val)
 {
     EntityManager<Address> mgrProduct = new EntityManager<Address>();
     Address obj = new Address();
     obj.AddressID = val;
     List<Address> list2 = mgrProduct.Search(obj);
     string x = list2[0].AddressLine1;
     lbEdit.Text = x;
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     EntityManager<Address> mgrProduct = new EntityManager<Address>();
     Address obj = new Address();
     obj.AddressID = 9;
     List<Address> list2 = mgrProduct.Search(obj);
     GridView2.DataSource = list2[0].AddressLine1;
     GridView2.DataBind();
 }
 public void refreshdata()
 {
     EntityManager<Address> mgrProduct = new EntityManager<Address>();
     Address obj = new Address();
     obj.AddressID = Convert.ToInt32(Session["AddressId"]);
     List<Address> list2 = mgrProduct.Search(obj);
     lbl.Text = list2[0].AddressLine1;
     lblCity.Text = list2[0].City;
     lblState.Text = list2[0].StateProvince;
     lblCountry.Text = list2[0].CountryRegion;
     lblZip.Text = list2[0].PostalCode;
 }
 public void refreshdata_edit(int val)
 {
     EntityManager<Address> mgrProduct = new EntityManager<Address>();
     Address obj = new Address();
     obj.AddressID = val;
     List<Address> list2 = mgrProduct.Search(obj);
     txtStreet.Text = list2[0].AddressLine1;
     txtCity.Text = list2[0].City;
     txtState.Text = list2[0].StateProvince;
     txtCountry.Text = list2[0].CountryRegion;
     txtZip.Text = list2[0].PostalCode;
 }