list.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class news : System.Web.UI.Page
{
    DataPage dp = new DataPage();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            bind();
        }
    }

    /// <summary>
    /// 绑定
    /// </summary>
    private void bind()
    {
        string where = "  1=1  ";

        if (TextBox1.Text != "")
        {
            where += " and pname like '%" + TextBox1.Text + "%' ";
        }

        if (Request.QueryString["tid"] != null)
        {
            if (Request.QueryString["tid"] != "0")
            {
                where += " and a.tid=" + Request.QueryString["tid"];
            }
           
        }


        if (Request.QueryString["k"] != null)
        {
            if (Request.QueryString["k"] != "")
            {
                where += " and pname like '%" + Request.QueryString["k"] + "%' ";
            }
        }

        if (Request.QueryString["p1"] != null)
        {
            if (Request.QueryString["p1"] != "")
            {
                where += " and price >=" + Request.QueryString["p1"];
            }
        }


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

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

AI 解读 AI

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

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