Exemplo n.º 1
0
    private void showname()
    {
        Labelname.Text = Server.UrlDecode(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sname"].ToString());
        int sclass = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString());
        int sgrade = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString());

        LearnSite.BLL.Room rbll = new LearnSite.BLL.Room();
        if (rbll.GetRnameedit(sgrade, sclass))
        {
            Btnname.Enabled = true;
        }
        else
        {
            Btnname.Enabled = false;
        }
    }
Exemplo n.º 2
0
    private void showname()
    {
        Labelname.Text = Server.UrlDecode(cook.Sname);
        int sclass = cook.Sclass;
        int sgrade = cook.Sgrade;

        LearnSite.BLL.Room rbll = new LearnSite.BLL.Room();
        if (rbll.GetRnameedit(sgrade, sclass))
        {
            Btnname.Enabled = true;
        }
        else
        {
            Btnname.Enabled = false;
        }
    }