常用方法
常用方法
常用方法
常用方法
/// <summary> /// Before bind data elements to droplist country. /// </summary> /// <param name="sender">Object sender : ddlCountry.</param> /// <param name="e">EventArgs e.</param> protected void OnCountryDataBinding(Object sender, EventArgs e) { DropDownList ddlCountry = sender as DropDownList; ddlCountry.DataSource = AddressRepository.GetAllCountries(); }