Admin/ClientUpdate.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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 ClientUpdate : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string sql = "select * from jingli";
DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
if (result != null)
{
for (int i = 0; i < result.Tables[0].Rows.Count; i++)
{
this.DropDownList1.Items.Add(result.Tables[0].Rows[i]["xingming"].ToString());
}
}
sql = "select * from Client where id=" + Request.QueryString["id"].ToString().Trim();
result = new Class1().hsggetdata(sql);
if (result != null)
{
this.DropDownList1.Text = result.Tables[0].Rows[0]["jingli"].ToString();
this.Name.Text = result.Tables[0].Rows[0]["Name"].ToString();
this.Number.Text = result.Tables[0].Rows[0]["Number"].ToString();
this.Age.Text = result.Tables[0].Rows[0]["Age"].ToString();
this.zhiye.Text = result.Tables[0].Rows[0]["zhiye"].ToString();
this.yuexin.Text = result.Tables[0].Rows[0]["yuexin"].ToString();
this.Tel.Text = result.Tables[0].Rows[0]["Tel"].ToString();
this.Address.Text = result.Tables[0].Rows[0]["Address"].ToString();
this.Times.Text = result.Tables[0].Rows[0]["Times"].ToString();
this.jiaoyihao.Text = result.Tables[0].Rows[0]["jiaoyihao"].ToString();
if (result.Tables[0].Rows[0]["Sex"].ToString().Trim() == "男")
{
RadioButton1.Checked = true;
}
else
{
RadioButton2.Checked = true;
}
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string jingli = this.DropDownList1.Text;
string Name = this.Name.Text;
string Number = this.Number.Text;
string Sex;
if (RadioButton1.Checked)
{
Sex = "男";
}
else
后面还有 24 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
