Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         // In a real-world scalable web site, this data would be cached.
         StateDropDown.DataSource = ZipLookupService.GetStates();
         StateDropDown.DataBind();
     }
 }
 public void LoadStatesList(IEnumerable <State> states)
 {
     StateDropDown.DataSource = states;
     StateDropDown.DataBind();
 }
 public void LoadStates(CustomersDataSet.StatesDataTable states)
 {
     StateDropDown.DataSource = states;
     StateDropDown.DataBind();
 }