Exemple #1
0
        /// <summary>
        ///  method to bind data to HightAuthDropDownList from database
        /// </summary>
        public void getAllProjectPersonUser()
        {
            WorkFlowBO   objWorkFlow     = new WorkFlowBO();
            WorkFlowBLL  WorkFlowBLLobj  = new WorkFlowBLL();
            WorkFlowList objWorkFlowList = new WorkFlowList();
            string       projectID       = Session["PROJECT_ID"].ToString();

            objWorkFlowList = WorkFlowBLLobj.getAllProjectPersonUser(projectID);

            ListItem lstItem1 = HightAuthDropDownList.Items[0];

            HightAuthDropDownList.Items.Clear();

            HightAuthDropDownList.DataSource     = objWorkFlowList;//dt.Tables[0];
            HightAuthDropDownList.DataTextField  = "UserName";
            HightAuthDropDownList.DataValueField = "UserID";
            HightAuthDropDownList.DataBind();
            HightAuthDropDownList.Items.Insert(0, lstItem1);
        }