예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string strout = string.Empty;

            if (BLL.SmsManager.HasPower(GetType().Name, Session["admin"], out strout) != 0)
            {
                Response.Write("{success:false,errorInfo:'" + strout + "'}");
                return;
            }
            //手写类文件名放到后台
            int    start     = 0;
            int    limit     = 0;
            int    iType     = -1;
            string strUserID = string.Empty;

            try
            {
                string starts = Request.Form["start"];
                string limits = Request.Form["limit"];
                if (starts != null)
                {
                    start = int.Parse(starts);
                }
                if (limits != null)
                {
                    limit = int.Parse(limits);
                }
                strout = new BLL.SmsIllegal().GetIllegalList(start, limit);
                Response.Write(strout);
            }
            catch (Exception ee)
            {
                Response.Write("success:false");
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     string strout = string.Empty;
     if (BLL.SmsManager.HasPower(GetType().Name, Session["admin"], out strout) != 0)
     {
         Response.Write("{success:false,errorInfo:'" + strout + "'}");
         return;
     }
     //手写类文件名放到后台
     int start = 0;
     int limit = 0;
     int iType = -1;
     string strUserID = string.Empty;
     try
     {
         string starts = Request.Form["start"];
         string limits = Request.Form["limit"];
         if (starts != null)
         {
             start = int.Parse(starts);
         }
         if (limits != null)
         {
             limit = int.Parse(limits);
         }
         strout = new BLL.SmsIllegal().GetIllegalList(start, limit);
         Response.Write(strout);
     }
     catch (Exception ee)
     {
         Response.Write("success:false");
     }
 }