Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string result = "";

            int siteId = Convert.ToInt32(Request["siteId"] ?? "0");
            int page   = Convert.ToInt32(Request["page"] ?? "0");

            if (siteId > 0)
            {
                BusinessBLL.SiteService service = new BusinessBLL.SiteService();

                var sexSpider = service.GetSexSpider(siteId);

                var lists = GetLists(sexSpider, page);

                result = Newtonsoft.Json.JsonConvert.SerializeObject(lists, serializerSettings);
            }
            else
            {
                result = "SiteId 无效!";
            }

            Response.Write(result.ToString());
            Response.End();
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string url = Request["url"] ?? "";

            int siteId = Convert.ToInt32(Request["siteId"] ?? "0");

            if (siteId > 0 && url != "")
            {
                BusinessBLL.SiteService service = new BusinessBLL.SiteService();

                var sexSpider = service.GetSexSpider(siteId);
                var lists     = GetImages(sexSpider, HttpUtility.UrlDecode(url));

                this.Repeater1.DataSource = lists;
                this.Repeater1.DataBind();
            }
        }
    }