zhiweiList.aspx.cs

(完整代码) 1KB

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

public partial class zhiweiList : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            sqlConn conn = new sqlConn();
            DataSet ds = new DataSet();
            string strsql = "select * from zhiwei where flag='审核通过' ";
            if (Request.QueryString["leixing"] != null) 
            {
                strsql += " and fenlei='" + Request.QueryString["leixing"].ToString() + "'";
            }
            if (Request.QueryString["guanjian"] != null)
            {
                strsql += " and zhiweiming like '%" + Request.QueryString["guanjian"].ToString() + "%'";
            }
            strsql += "  order by id desc";
            ds = conn.hsggetdata(strsql);
            Repeater1.DataSource = ds.Tables[0];
            Repeater1.DataBind();
        }
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        LinkButton ibn = (LinkButton)sender;
        string id = ibn.CommandArgument.ToString();
        Response.Redirect("zhiweiDetail.aspx?id=" + id + "");

    }
}

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

AI 解读 AI

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

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