protected override void OnInit(System.EventArgs e) { if (!IsPostBack) { DistrictDropDownList1.LoadData(); } base.OnInit(e); }
protected override AddressEntity FillEntity() { var info = base.FillEntity(); if (info != null) { info.Account = new AccountEntity { Id = Request.QueryString["AccountId"].Convert <long>() }; DistrictDropDownList1.GetDistrictSelectedValue(); info.Country = "中国"; info.Province = DistrictDropDownList1.ProvinceDropDownList.SelectedValue; info.City = DistrictDropDownList1.CityDropDownList.SelectedValue; info.County = DistrictDropDownList1.CountyDropDownList.SelectedValue; } return(info); }