private void CanEdit() { int sclass = cook.Sclass; int sgrade = cook.Sgrade; LearnSite.BLL.Room rbll = new LearnSite.BLL.Room(); if (rbll.GetRsexedit(sgrade, sclass)) { Btnsex.Enabled = true; } else { Btnsex.Enabled = false; Labelstr.Text = "限制修改性别"; } }
private void CanEdit() { 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.GetRsexedit(sgrade, sclass)) { Btnsex.Enabled = true; } else { Btnsex.Enabled = false; Labelstr.Text = "限制修改性别"; } }