/// <summary> /// Author: Josephine Gad /// Date Created: 19/10/2012 /// Descrition: binds country to listview /// </summary> private void BindCountry() { try { List <Country> list = new List <Country>(); if (list.Count == 0) { CountryBLL.GetCountryList(); } list = CountryGenericClass.CountryList; uoDropDownListCountry.Items.Clear(); uoDropDownListCountry.DataSource = list; uoDropDownListCountry.DataTextField = "CountryName"; uoDropDownListCountry.DataValueField = "CountryID"; uoDropDownListCountry.DataBind(); uoDropDownListCountry.Items.Insert(0, new ListItem("--Select Country--", "0")); ////uoHiddenFieldRegionId.Value = GlobalCode.Field2String(Session["Region"]); //uoHiddenFieldRole.Value = GlobalCode.Field2String(Session["UserRole"]);; //uoNationalityList.Items.Clear(); //uoNationalityList.DataSource = null; //uoNationalityList.DataSourceID = "ObjectDataSource1"; //UpdatePanel2.Update(); ////uoTextBoxSearchParam.Text = ""; } catch (Exception ex) { throw ex; } }