/// <summary> /// method to bind data to WorkflowItemDropDownList from database /// </summary> public void getWorkfolwitemByModuleID() { int ModuleID = Convert.ToInt32(ModuleDropDownList.SelectedItem.Value.ToString()); WorkFlowBO objWorkFlow = new WorkFlowBO(); WorkFlowBLL WorkFlowBLLobj = new WorkFlowBLL(); WorkFlowList objWorkFlowList = new WorkFlowList(); objWorkFlowList = WorkFlowBLLobj.GetWorkFlowByModuleId(ModuleID); ListItem lstItem = WorkflowItemDropDownList.Items[0]; WorkflowItemDropDownList.Items.Clear(); WorkflowItemDropDownList.DataSource = objWorkFlowList;//dt.Tables[0]; WorkflowItemDropDownList.DataTextField = "WorkDesc"; WorkflowItemDropDownList.DataValueField = "WorkflowID"; WorkflowItemDropDownList.DataBind(); WorkflowItemDropDownList.Items.Insert(0, lstItem); }