Ejemplo n.º 1
0
 protected void ButtonDel_Click(object sender, EventArgs e)
 {
     if (Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"] != null)
     {
         int Cid  = Int32.Parse(Request.QueryString["Cid"].ToString());
         int Chid = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString());
         LearnSite.BLL.Courses coursebll = new LearnSite.BLL.Courses();
         coursebll.DeleteCourse(Cid, Chid);
         System.Threading.Thread.Sleep(500);
         Response.Redirect("~/Teacher/course.aspx", false);
     }
 }