protected void Page_Load(object sender, EventArgs e) { LearnSite.Common.CookieHelp.JudgeTeacherCookies(); Master.Page.Title = LearnSite.Common.CookieHelp.SetMainPageTitle() + "课程资源添加页面"; string coursePath= LearnSite.Store.CourseStore.SetSoftDownload(); if (Request.Cookies["TeacherCookies"] != null) { string hidstr = Request.Cookies["TeacherCookies"].Values["Hid"].ToString(); LearnSite.BLL.Teacher bll = new LearnSite.BLL.Teacher(); bll.SetHpath(coursePath, hidstr); } }
private void GetMyCid() { if (Request.Cookies["TeacherCookies"] != null) { if (Request.QueryString["Cid"] != null) { GetCid = Int32.Parse(Request.QueryString["Cid"].ToString()); coursePath = LearnSite.Store.CourseStore.FCKUserFilesPath(GetCid.ToString()); string hidstr = Request.Cookies["TeacherCookies"].Values["Hid"].ToString(); LearnSite.BLL.Teacher bll = new LearnSite.BLL.Teacher(); bll.SetHpath(coursePath, hidstr); } else { Response.Redirect("~/Teacher/course.aspx", false); } } }
protected void Page_Load(object sender, EventArgs e) { LearnSite.Common.CookieHelp.JudgeTeacherCookies(); Master.Page.Title = LearnSite.Common.CookieHelp.SetMainPageTitle() + "课程活动编辑页面"; if (Request.QueryString["Mcid"] != null) { string Mcid = Request.QueryString["Mcid"].ToString(); string coursePath = LearnSite.Store.CourseStore.FCKUserFilesPath(Mcid); string hidstr = Request.Cookies["TeacherCookies"].Values["Hid"].ToString(); LearnSite.BLL.Teacher bll = new LearnSite.BLL.Teacher(); bll.SetHpath(coursePath, hidstr); } else { Response.Redirect("~/Teacher/course.aspx", false); } if (!IsPostBack) { ShowTypename(); missionview(); } }
protected void Page_Load(object sender, EventArgs e) { LearnSite.Common.CookieHelp.JudgeTeacherCookies(); Master.Page.Title = LearnSite.Common.CookieHelp.SetMainPageTitle() + "试题编辑页面"; if (Request.QueryString["Qid"] != null) { if (!IsPostBack) { ShowQuiz(); } string coursePath = LearnSite.Store.CourseStore.SetQuizStorage(); if (Request.Cookies["TeacherCookies"] != null) { string hidstr = Request.Cookies["TeacherCookies"].Values["Hid"].ToString(); LearnSite.BLL.Teacher bll = new LearnSite.BLL.Teacher(); bll.SetHpath(coursePath, hidstr); } } else { Response.Redirect("~/Quiz/quiz.aspx", false); } }