Admin/JinHuoSearch.aspx.cs
(完整代码) 965Busing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Admin_JinHuoSearch : System.Web.UI.Page
{
Alert alert = new Alert();
SqlHelper data = new SqlHelper();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DropDownList1.DataSource = data.GetDataReader("select * from Class ");
DropDownList1.DataTextField = "Name";
DropDownList1.DataValueField = "id";
DropDownList1.DataBind();
DropDownList1.Items.Add(new ListItem("所有类别", "0")); //动态添加新项
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("InqueJinHuoList.aspx?name=" + txtname.Text + "&Code=" + TextBox1.Text + "&TypeName=" + DropDownList1.SelectedItem.Text + "");
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。