private void Login(HttpContext context) { Member mem = new Member(); mem.Name = context.Request["name"]; mem.Password = context.Request["password"]; mem = DataOpt.Login(mem); string result = ""; if (mem == null) { result = "0"; } else { result = SerializerHelper.ToJson(mem); CometManager.Login(mem); } context.Response.Write(result); }