Web/admin/user/user_zbModify.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Bll;
using System.Data.SqlClient;
public partial class user_zbModify : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
string id = Request["id"].ToString();
string sql;
sql = "select a.id as id,a.username as username,a.password as password,a.power as power,";
sql += "a.realName as realName,a.sex as sex,";
sql += "a.age as age,a.email as email,a.phone as phone,a.dy as dy,z.zwname as zwname ";
sql += " from admin a,zw z where z.id=a.zwid and a.id= " + id;
SqlDataReader reader = DbHelperSQL.ExecuteReader(sql);
reader.Read();
this.username.Text = reader.GetString(1);
this.password.Text = reader.GetString(2);
this.realName.Text = reader.GetString(4);
this.sex.Text = reader.GetString(5);
this.age.Text = reader.GetInt32(6).ToString();
this.email.Text = reader.GetString(7);
this.phone.Text = reader.GetString(8);
this.dy.Text = reader.GetString(9);
this.zw.Text = reader.GetInt32(10).ToString();
}
}
catch (Exception )
{
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string sql = "update admin set username='" + this.username.Text + "',password='" + this.password.Text + "',realName='" + this.realName.Text + "',zwid=" + this.zw.Text + ",age=" + this.age.Text + ",sex='" + this.sex.Text + "',email='" + this.email.Text + "',phone='" + this.phone.Text + "',dy='" + this.dy.Text + "' where id=" + Request["id"].ToString(); ;
int result = DbHelperSQL.ExecuteSql(sql);
if(result == 1)
{
后面还有 4 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。