member_update.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
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 System.Data.OleDb;
public partial class admin_member_update : Sper.baseuser
{
protected override void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!IsPostBack)
{
if (Request.QueryString["id"] != null)
{
ShowInfo(int.Parse(Request.QueryString["id"]));
}
}
}
private void ShowInfo(int ID)
{
string sql = "select * from [member]";
sql += " where [id]=" + ID.ToString();
DataRow dr = new Tools().Query(sql).Tables[0].Rows[0];
this.txtname.Text = dr["name"].ToString();
this.txtremarks.Text = dr["remarks"].ToString();
this.txtrealname.Text = dr["realname"].ToString();
this.txtphone.Text = dr["phone"].ToString();
this.txtpostcode.Text = dr["postcode"].ToString();
this.txtemail.Text = dr["email"].ToString();
this.txtaddress.Text = dr["address"].ToString();
this.txtjob.Value = dr["job"].ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
Update();
}
public void Update()
{
string name = this.txtname.Text;
string password = "";
if (txt_newpass.Text != "")
{ password = fun.Encrypt(this.txt_newpass.Text, 1); }
string email = this.txtemail.Text;
string remarks = this.txtremarks.Text;
string realname = this.txtrealname.Text;
string phone = this.txtphone.Text;
string address = this.txtaddress.Text;
string postcode = this.txtpostcode.Text;
后面还有 23 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
