yonghu/yonghumod.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 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_yonghumod : System.Web.UI.Page
{
    string id = "";
    protected void Page_Load(object sender, EventArgs e)
    {
	 id = Request.QueryString["id"].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.qx.Text= sdr["qx"].ToString();//权限
this.jg.Text= sdr["jg"].ToString();//机构
this.dh.Text= sdr["dh"].ToString();//电话
this.dz.Text= sdr["dz"].ToString();//地址
this.zw.Text= sdr["zw"].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 qx=this.qx.Text;//权限
string jg=this.jg.Text;//机构
string dh=this.dh.Text;//电话
string dz=this.dz.Text;//地址
后面还有 58 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。