/// <summary> /// Binds the Data to Discipline Dropdown /// Added By: Gopinath /// Date:3/09/2010 /// Reason: To Populate Values in Discipline Dropdown /// </summary> /// <param name="cboList">DropDownList</param> /// <param name="strListname">string</param> /// <param name="strCAMLQuery">string</param> protected void BindDisciplineDropDown(DropDownList cboList, string listName, string CAMLQuery) { objWellBookBLL = new WellBookBLL(); cboList.Items.Clear(); cboList.DataSource = objWellBookBLL.GetDisciplinesList(strParentSiteURL, listName, CAMLQuery); cboList.DataTextField = "value"; cboList.DataValueField = "key"; cboList.DataBind(); }