admin/links/sisu.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.Data;

namespace web.admin.links
{
    public partial class sisu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {

                if (Request.QueryString["tid"] != null)
                {

                    int tid = Convert.ToInt32(Request.QueryString["tid"]);

                    int x = 100;
                    int p = 1;
                    if (Request.QueryString["pagex"] != null)
                    {
                        p = Convert.ToInt32(Request.QueryString["pagex"]);
                    }


                    string username = new Random().Next(100).ToString();

                    username += "&tid=" + tid;

                    string sqlstring = string.Empty;
                    if ((p - 1) * x == 0)
                    {
                        sqlstring = "select top " + x + " * from links where tid = "+tid+" order by px";
                    }
                    else
                    {
                        sqlstring = "select top " + x + " * from links where px >(select max(px) from links where px in (select top " + (p - 1) * x + " px from links where tid = " + tid + " order by px) ) and tid = " + tid + " order by px";
                    }

                    using (DataTable li = new AcsHelper().ExecuteDataTable(sqlstring))
                    {
                        this.Repeater1.DataSource = li;
                        this.Repeater1.DataBind();
                    }


                    this.Literal1.Text = liu.fystr(x, "links where tid = " + tid + "", username, p, "pagex", "id");
                }
            }
        }
        protected void Rp_OnItemCommand(object o, RepeaterCommandEventArgs e)
        {
            if (e.CommandName == "del")
            {

后面还有 120 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。