EasyShop/PersonCenter/Member_EditInfo.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyModels;
using System.Data;
using System.Data.SqlClient;
using Easy.COMMON;
namespace EasyShop.PersonCenter
{
public partial class Member_EditInfo :Base_Page
{
// Methods
public string jsString = string.Empty;
private void Bind()
{
TB_MC_User tmu = new TB_MC_User();
string UserID = conn.MyCookie.getCookie("UserID");
DataSet ds=tmu.GetList(" Id="+UserID+"");
int num = ds.Tables[0].Rows.Count;
for (int i = 0; i < num; i++)
{
this.litUserNo.Text = ds.Tables[0].Rows[i]["UserName"].ToString();
this.txt_LoginName.Text = ds.Tables[0].Rows[i]["LoginName"].ToString();//登录名
this.tbxEmail.Value = ds.Tables[0].Rows[i]["Email"].ToString();//EMAIL
this.tbxCode.Text = ds.Tables[0].Rows[i]["ZipCode"].ToString();//邮政号码
this.tbxMobile.Text = ds.Tables[0].Rows[i]["Mobile"].ToString();//手机
this.tbxQQ.Text = ds.Tables[0].Rows[i]["QQ"].ToString();//QQ
if (ds.Tables[0].Rows[i]["Sex"].ToString() == "1")//性别
{
this.femalerdo.Checked = true;
}
else
{
this.malerdo.Checked = true;
}
//this.tbxSSQ.Text = ds.Tables[0].Rows[i]["Address"].ToString();//省/市/区
this.tbxBirth.Text = ds.Tables[0].Rows[i]["BirthDay"].ToString();//生日
this.tbxAddress.Text = ds.Tables[0].Rows[i]["Address"].ToString();//详细地址
}
}
protected void btnset_Click(object sender, EventArgs e)
{
TB_MC_User tmu = new TB_MC_User();
if (base.Request.Form["SelChkEmail"].ToString() == "1")
{
tmu.Email = this.tbxEmail.Value.Trim();
}
tmu.Mobile = StaticFunction.CheckSql(this.tbxMobile.Text.Trim());
tmu.QQ= StaticFunction.CheckSql(this.tbxQQ.Text.Trim());
if (this.malerdo.Checked)
{
tmu.Sex= int.Parse(this.malerdo.Value);
}
后面还有 42 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。