yonghu/yonghu.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;
using System.Data.SqlClient;
public partial class yonghu_yonghu : System.Web.UI.Page
{
string id = "";
protected void Page_Load(object sender, EventArgs e)
{
id = Session["yhid"].ToString();
if (!Page.IsPostBack)
{
(Master.FindControl("Label1") as Label).Text = "修改用户";
ShowInfo();
}
}
// 初始化 用户 信息
protected void ShowInfo()
{
//设置查询Sql
string sql = "select * from yonghu where yhid=" + id;
//根据编号得到相应的记录
SqlDataReader sdr = SqlHelper.ExecuteReader(sql);
if (sdr.Read())
{
this.yhm.Text = sdr["yhm"].ToString();//用户名
this.mm.Text = sdr["mm"].ToString();//密码
this.xm.Text = sdr["xm"].ToString();//姓名
this.yj.Text = sdr["yj"].ToString();//邮件
this.dz.Text = sdr["dz"].ToString();//地址
this.qx.Text = sdr["qx"].ToString();//权限
this.dh.Text = sdr["dh"].ToString();//电话
this.zcsj.Text = sdr["zcsj"].ToString();//注册时间
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
string yhm = this.yhm.Text;//用户名
string mm = this.mm.Text;//密码
string xm = this.xm.Text;//姓名
string yj = this.yj.Text;//邮件
string dz = this.dz.Text;//地址
string qx = this.qx.Text;//权限
string dh = this.dh.Text;//电话
后面还有 66 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
