protected void ImageBtngoodall_Click(object sender, ImageClickEventArgs e)
    {
        string mynum = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Snum"].ToString();

        if (mynum.IndexOf("s") > -1)
        {
            int tid    = Int32.Parse(Request.QueryString["Tid"].ToString());
            int sgrade = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString());
            int sclass = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString());
            int syear  = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Syear"].ToString());
            LearnSite.BLL.TopicReply rbll = new LearnSite.BLL.TopicReply();
            rbll.UpdateAllscore(tid, sgrade, sclass, syear);
            System.Threading.Thread.Sleep(500);
            showreply();
        }
    }
Esempio n. 2
0
    protected void ImageBtngoodall_Click(object sender, ImageClickEventArgs e)
    {
        string mynum = cook.Snum;

        if (mynum.IndexOf("s") > -1)
        {
            int tid    = Int32.Parse(Request.QueryString["Tid"].ToString());
            int sgrade = cook.Sgrade;
            int sclass = cook.Sclass;
            int syear  = cook.Syear;
            LearnSite.BLL.TopicReply rbll = new LearnSite.BLL.TopicReply();
            rbll.UpdateAllscore(tid, sgrade, sclass, syear);
            System.Threading.Thread.Sleep(500);
            showreply();
        }
    }