admin/member_update.aspx.cs

(开头部分) 10KB

这里只显示每个文件的开头 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;

public partial class admin_member_update : Sper.baseadmin
{
    protected override void Page_Load(object sender, EventArgs e)
    {
        base.Page_Load(sender, e);
        if (!IsPostBack)
        {
            txtexpireDate.Text = DateTime.Now.ToString();
            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 = DbHelperSQL.Query(sql).Tables[0].Rows[0];

        this.txtname.Text = dr["name"].ToString();
        this.txtpassword.Text = dr["password"].ToString();
        this.txtemail.Text = dr["email"].ToString();
        this.txtremarks.Text = dr["remarks"].ToString();
        this.txtqq.Text = dr["qq"].ToString();
        this.txticq.Text = dr["icq"].ToString();
        this.txtmsn.Text = dr["msn"].ToString();
        this.txtquestion.Text = dr["question"].ToString();
        this.txtanswer.Text = dr["answer"].ToString();
        this.txtmale.Text = dr["male"].ToString();
        this.txtbirthday.Text = dr["birthday"].ToString();
        this.txtrealname.Text = dr["realname"].ToString();
        this.txtcountry.Text = dr["country"].ToString();
        this.txtprovince.Text = dr["province"].ToString();
        this.txtcity.Text = dr["city"].ToString();
        this.txtphone.Text = dr["phone"].ToString();
        this.txtaddress.Text = dr["address"].ToString();
        this.txtpostcode.Text = dr["postcode"].ToString();
        this.txtbloodType.Value = dr["bloodType"].ToString();
        this.txtjob.Value = dr["job"].ToString();
        this.txtedu.Value = dr["edu"].ToString();
        this.txtschool.Text = dr["school"].ToString();
        //this.txthideEmail.Text = dr["hideEmail"].ToString();
        //this.txtlastLog.Text = dr["lastLog.ToString()"].ToString();
        //this.txtlogTimes.Text = dr["logTimes.ToString()"].ToString();
        this.txtphoto.Text = dr["photo"].ToString();
        this.txtintroduction.Text = dr["introduction"].ToString();
后面还有 195 行代码,购买后查看完整代码

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

AI 解读 AI

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

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