/// <summary> /// Bind DropdownLists as per the requisitionType /// </summary> private void BindDepartmentDLL(DropDownList ddl, string Reqsns) { try { BLL_PURC_Config_PO objBLLPURC = new BLL_PURC_Config_PO(); ddl.Items.Clear(); ddl.DataSource = objBLLPURC.PURC_Get_Configured_Functions(Reqsns).Tables[0]; ddl.AppendDataBoundItems = true; ddl.DataTextField = "Function_Name"; ddl.DataValueField = "ID"; ddl.DataBind(); ddl.Items.Insert(0, new ListItem("--SELECT ALL--", "0")); ddl.SelectedIndex = 0; } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }