Esempio n. 1
0
        protected void ddlPosition_SelectedIndexChanged(object sender, EventArgs e)
        {
            CommentBLL temp = new  CommentBLL();
            DataSet ds = temp.GetCommentByPosition(ddlPosition.SelectedValue);

            grVActivityManage.DataSource = ds.Tables[0].DefaultView ;
            grVActivityManage.DataSourceID = null;
            grVActivityManage.DataBind();
            temp = null;
        }
Esempio n. 2
0
        private void bind()
        {
            //if (string.IsNullOrEmpty(users_id))
            //{
            //    return;
            //}

            PositionBLL positionBll = new PositionBLL();
            DataSet dsPosition = positionBll.GetPositionAll("");
            ddlPosition.DataSource = dsPosition.Tables[0].DefaultView;
            ddlPosition.DataTextField = "position_name";
            ddlPosition.DataValueField = "position_id";

            ddlPosition.DataBind();
            //ActivityBLL temp = new ActivityBLL();
            //DataSet ds = temp.GetActivityByPositionId(ddlPosition.SelectedValue);
            CommentBLL temp = new CommentBLL();
            DataSet ds = temp.GetCommentByPosition(ddlPosition.SelectedValue);
            grVActivityManage.DataSource = ds.Tables[0].DefaultView;
            grVActivityManage.DataSourceID = null;
            grVActivityManage.DataBind();
            temp = null;
        }