protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int Id = Convert.ToInt32(e.CommandArgument.ToString()); //subID question
            string cName = e.CommandName.ToLower();
            //------------- Lay ParentID

            AdminBSO adminBSO = new AdminBSO();
            ETO.Admin admin = new ETO.Admin();
            ListQuestionBSO listQuestionBSO = new ListQuestionBSO();
            DataTable dt = new DataTable();
            string strParentID = "";
            dt = listQuestionBSO.GetQuestionByID(Id);
            if (dt.Rows.Count > 0)
                strParentID = dt.Rows[0]["Question_ParentID"].ToString();

            switch (cName)
            {
                case "_view_sub":
                    break;
                case "_publish":
                    listQuestionBSO.updateStatusPublishQuestion(Id, 1);
                    Response.Redirect("~/Admin/listdetailquestion&Id=" + strParentID + "/Default.aspx");
                    break;
                case "_unpublish":
                    listQuestionBSO.updateStatusPublishQuestion(Id, 0);
                    Response.Redirect("~/Admin/listdetailquestion&Id=" + strParentID + "/Default.aspx");
                    break;
                case "_edit_sub":
                    {
                        Response.Redirect("~/Admin/s/listdetailquestion/" + strParentID + "/" + Id + "/Default.aspx");
                        break;
                    }
                case "_delete_sub":
                    {
                        listQuestionBSO.deleteQuestionByID(Id);
                        Response.Redirect("~/Admin/p/listquestion/0/Default.aspx");
                        break;
                    }
            }
        }
        protected void grvListQuestion_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int Id = Convert.ToInt32(e.CommandArgument.ToString());
            string cName = e.CommandName.ToLower();
            AdminBSO adminBSO = new AdminBSO();
            ETO.Admin admin = new ETO.Admin();
            ListQuestionBSO listQuestionBSO = new ListQuestionBSO();

            switch (cName)
            {
                case "_view":
                    break;
                case "_publish":
                    listQuestionBSO.updateStatusPublishQuestion(Id, 1);
                    Response.Redirect("~/Admin/listdetailquestion/" + Id + "/Default.aspx");
                    break;
                case "_unpublish":
                    listQuestionBSO.updateStatusPublishQuestion(Id, 0);
                    Response.Redirect("~/Admin/listdetailquestion/" + Id + "/Default.aspx");

                    break;
                case "_edit":
                    admin = adminBSO.GetAdminById(Session["Admin_UserName"].ToString());
                    //if (Session["Admin_UserName"].ToString().Equals("administrator") || adminBSO.CheckPermission(Session["Admin_UserName"].ToString(), "Edit") || adminBSO.CheckPermission(Session["Admin_UserName"].ToString(), "Write"))
                    {
                        Response.Redirect("~/Admin/editquestion/" + Id + "/Default.aspx");
                    }

                    break;
                case "_delete":
                    listQuestionBSO.deleteQuestionByID(Id);
                    Response.Redirect("~/Admin/p/listquestion/0/Default.aspx");
                    break;
            }
        }