Esempio n. 1
0
        protected void ModifyIntro_Button_Click(object sender, EventArgs e)
        {
            if (Session["UserInfo"] != null)
            {
                course.Introduction = Modify_Intro.Text;
                course.ChangeCourseInfo();

                AllDataBind();
                //Response.Redirect(Request.Url.AbsoluteUri);
            }
        }
Esempio n. 2
0
 protected void ModifyIntro_Button_Click(object sender, EventArgs e)
 {
     if (Session["UserInfo"] != null)
     {
         course.Introduction = Modify_Intro.Text;
         if (1 == course.ChangeCourseInfo())
         {
             AllDataBind();
         }
         else
         {
             ScriptManager.RegisterStartupScript(Page, GetType(), "changefailed", "alert('修改失败');", true);
         }
     }
     else
     {
         HttpContext.Current.Response.Write("<script type='text/javascript'>alert('闲置时间过长,请重新登录');location.href='" + Request.Url.AbsoluteUri + "'</script>");
     }
 }