Beispiel #1
0
    protected void ButtonClearType_Click(object sender, EventArgs e)
    {
        string Hid = Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString();

        if (!string.IsNullOrEmpty(Hid))
        {
            int rhid = Int32.Parse(Hid);
            LearnSite.BLL.Ptyper pbll = new LearnSite.BLL.Ptyper();
            pbll.DeleteMyAll(rhid);

            ButtonClearType.Enabled = false;
            labelmsg.Text           = "清除所教班级学生中文打字成绩成功!";
        }
    }
Beispiel #2
0
    protected void ButtonClearType_Click(object sender, EventArgs e)
    {
        string Hid = tcook.Hid.ToString();

        if (!string.IsNullOrEmpty(Hid))
        {
            int rhid = Int32.Parse(Hid);
            LearnSite.BLL.Ptyper pbll = new LearnSite.BLL.Ptyper();
            pbll.DeleteMyAll(rhid);

            ButtonClearType.Enabled = false;
            labelmsg.Text           = "清除所教班级学生中文打字成绩成功!";
        }
    }