YKT_EShop/_Template/Default/Member/Personal.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_Common;
using YKT_Model;
using YKT_BLL;
namespace YKT_EShop._Template.Default.Member
{
public partial class Personal : BasicPage
{
public string s1 = "", s2 = "", s3 = "";
protected Button btnSave;
protected TextBox txtUserName;
protected DropDownList ddlUserSex;
protected TextBox txtUserBirthDay;
protected TextBox txtUserIdentityCard;
protected TextBox txtUserEmail;
protected TextBox txtUserTelephone;
protected TextBox txtUserPhone;
protected TextBox txtUserPostCode;
protected HiddenField Tprovince;
protected HiddenField TCity;
protected HiddenField TCounty;
protected TextBox txtUserReadme;
protected override void OnInit(EventArgs e)
{
this.btnSave.Click += new EventHandler(btnSave_Click);
base.OnInit(e);
}
void btnSave_Click(object sender, EventArgs e)
{
int id = Input.SetInt(user.ID);
if (id > 0)
{
ModelUser model = new BLLUser().GetModel(id);
model.TrueName = txtUserName.Text;
model.UserSex = Input.SetInt(ddlUserSex.SelectedValue);
model.BirthDay = txtUserBirthDay.Text;
model.IdentityCard = txtUserIdentityCard.Text;
model.UserEmail = txtUserEmail.Text;
model.Telephone = txtUserTelephone.Text;
model.Phone = txtUserPhone.Text;
model.PostCode = Input.SetInt(txtUserPostCode.Text);
model.Address = this.Tprovince.Value;
model.Address2 = this.TCity.Value;
model.Address3 = this.TCounty.Value;
model.Readme = txtUserReadme.Text;
new BLLUser().Update(model);
Pr.RegClientAlertAndRedirect(this, "恭喜您!修改成功!", HTTPS.ComeUrl);
}
}
protected void Page_Load(object sender, EventArgs e)
后面还有 25 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。