protected void GVCourse_RowCommand(object sender, GridViewCommandEventArgs e) { string pCid = e.CommandArgument.ToString(); if (e.CommandName == "Cp") { LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses(); cbll.UpdateCpublish(Int32.Parse(pCid)); CoursesLimit(); } if (e.CommandName == "Cg") { LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses(); cbll.UpdateCgood(Int32.Parse(pCid)); CoursesLimit(); } if (e.CommandName == "Cu") { LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses(); cbll.UpdateCold(Int32.Parse(pCid)); CoursesLimit(); } }