admin/html/html_sel.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.html
{
    public partial class html_sel : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {

                int x = 20;
                int p = 1;
                if (Request.QueryString["pagex"] != null)
                {
                    p = Convert.ToInt32(Request.QueryString["pagex"]);
                }
                string username = new Random().Next(100).ToString();
                string sqlwere = "";
                string sqlstring = "";
                string sqlandwrer = "";
                if ((p - 1) * x == 0)
                {
                    sqlstring = "select top " + x + " * from html " + sqlwere + " order by px ";
                }
                else
                {
                    sqlstring = "select top " + x + " * from html where px >(select max(px) from html where px in (select top " + (p - 1) * x + " px from html " + sqlwere + " order by px) ) " + sqlandwrer + " order by px ";
                }

                OleDbParameter[] op = new OleDbParameter[] { 
                    
                };
                using (DataTable dt = new AcsHelper().ExecuteDataTable(sqlstring, op))
                {
                    this.Repeater1.DataSource = dt;
                    this.Repeater1.DataBind();
                }



                this.Literal1.Text = liu.fystr_new(x, "html" + sqlwere, username, p, "pagex", "id");

            }
        }
        protected void Rp_OnItemCommand(object o, RepeaterCommandEventArgs e)
        {
            if (e.CommandName == "del")
            {
                string sqlstring = "delete from html where id=" + e.CommandArgument;
                int a = new AcsHelper().ExecuteNonQuery(sqlstring);
                if (a > 0)
                {
                    Response.Redirect(Request.RawUrl);
后面还有 109 行代码,购买后查看完整代码

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

AI 解读 AI

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

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