[Ajax.AjaxMethod()] public int Login(string username,string password) { // 管理员登陆入口 Action.Common.CDB cdb = new Action.Common.CDB(); if("admin"==cdb.ExeScalar("select upower from users where
uname='"+username+"' and upwd='"+password+"'")) return 0; else return 1; }