protected override void OnInit(EventArgs e) { ApiResult apiresult = new ApiResult(); //CheckApiAuth(ref apiresult); if (apiresult.errcode != 0) { Response.Write(ObjectSerializeHelper.ObjectToJson(apiresult)); Response.End(); } }