protected void BtnOnlock_Click(object sender, EventArgs e) { if (Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname] != null) { LearnSite.BLL.Computers cbll = new LearnSite.BLL.Computers(); cbll.OnLockAll();//全体加锁 System.Threading.Thread.Sleep(500); showIpMachine(); } else { string ch = "请登录后执行操作!"; LearnSite.Common.WordProcess.Alert(ch, this.Page); } }