protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { streamingcpanel.DataAccess.DACountries myDB = new streamingcpanel.DataAccess.DACountries(); UCDropDownListCountry.DataSource = myDB.GetAllEnabledPaises(); UCDropDownListCountry.DataBind(); UCDropDownListTimeZone.DataSource = myDB.getTimeZones(); UCDropDownListTimeZone.DataBind(); myDB.cerrar(); } }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { streamingcpanel.DataAccess.DACountries myDb = new DACountries(); UCDropDownListCountry.DataSource = myDb.GetAllEnabledPaises(); UCDropDownListCountry.DataBind(); myDb.cerrar(); //UCDropDownListState.DataSource = streamingcpanel.DataAccess.DACountries.getUSAStates(); //UCDropDownListState.DataBind(); } }