Admin/Minfo.aspx.cs
(开头部分) 1KB这里只显示每个文件的开头 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;
public partial class FG : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DropBind();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
ID = Session["username"].ToString();
string sql;
sql = "update allusers set 真实姓名='" + this.TextBox2.Text + "',手机='" + this.TextBox3.Text + "',家庭住址='" + this.TextBox4.Text + "' where username='" + ID + "'";
int result;
result = new Class1().hsgexucute(sql);
if (result == 1)
{
Response.Write("<script>javascript:alert('操作成功');</script>");
}
else
{
Response.Write("<script>javascript:alert('系统错误,您没有设置好数据库的连接!');</script>");
}
}
private void DropBind()
{
this.TextBox1.Text = Session["username"].ToString();
string sql = "select * from allusers where username='" + Session["username"].ToString() + "'";
DataSet ds = new DataSet();
ds = new Class1().hsggetdata(sql);
if (ds != null)
{
if (ds.Tables[0].Rows.Count > 0)
{
this.TextBox2.Text = ds.Tables[0].Rows[0]["真实姓名"].ToString().Trim();
TextBox3.Text = ds.Tables[0].Rows[0]["手机"].ToString().Trim();
this.TextBox4.Text = ds.Tables[0].Rows[0]["家庭住址"].ToString().Trim();
}
}
}
后面还有 2 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
