admin/type/type_two.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.type
{
public partial class type_two : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
using (DataTable dt = new AcsHelper().ExecuteDataTable("select * from type_one order by px"))
{
foreach (DataRow r in dt.Rows)
{
ListItem lt = new ListItem();
lt.Text = r["type_one_name"].ToString();
lt.Value = r["id"].ToString();
this.DropDownList1.Items.Add(lt);
}
}
if (Request.QueryString["id"] != null)
{
int uid = Convert.ToInt32(Request.QueryString["id"]);
this.DropDownList1.SelectedValue = uid.ToString();
this.Literal1.Text = new AcsHelper().ExecuteScalar("select tid from type_one where id=(" + uid + ")").ToString();
}
if (Request.QueryString["uid"] != null)
{
int uid = Convert.ToInt32(Request.QueryString["uid"]);
using (DataTable dt = new AcsHelper().ExecuteDataTable("select * from type_two where id=" + uid.ToString()))
{
foreach (DataRow r in dt.Rows)
{
this.TextBox1.Text = r["type_two_name"].ToString();
this.type_two_name_en.Text = r["type_two_name_en"].ToString();
this.DropDownList1.SelectedValue = r["type_one_id"].ToString();
this.TextBox2.Text = r["title"].ToString();
this.TextBox3.Text = r["keyname"].ToString();
this.TextBox4.Text = r["conuts"].ToString();
this.DropDownList2.SelectedValue = r["type"].ToString();
this.TextBox5.Text = r["nt"].ToString();
this.Literal1.Text = new AcsHelper().ExecuteScalar("select tid from type_one where id=(" + r["type_one_id"] + ")").ToString();
this.TextBox6.Text = r["img"].ToString();
this.RadioButtonList1.SelectedValue = r["xid"].ToString();
}
}
this.Button1.Text = " 修改 ";
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
后面还有 92 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。