SelfInformatiom.aspx.cs

(完整代码) 2KB

using System;
using System.Data;
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.Threading;
public partial class SelfInformatiom : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["userName"] != null && Request.QueryString["userPassword"] != null)
        {
            WebHL.BLL.TBUserInformation validate = new WebHL.BLL.TBUserInformation();
            int selfId = 0;
            string result = validate.ValidateLoginNameAndPsw(Server.HtmlDecode(Request.QueryString["userName"]), Request.QueryString["userPassword"], ref selfId);
            if (result == "验证通过")
            {
                InitControlValue(selfId);
            }
            else
            {
                WebHL.MessageBox.Show(this.Page, result);
            }
        }
    }
    private void InitControlValue(int selfId)
    {
        WebHL.BLL.TBUserInformation detail = new WebHL.BLL.TBUserInformation();
        WebHL.Model.TBUserInformation model = new WebHL.Model.TBUserInformation();
        model = detail.GetModel(selfId);
        this.TBAge.Value = model.Age.ToString();
        this.TBMasterPage.Value = model.MasterPage;
        this.TBRealName.Value = model.RealName;
        this.TBSchool.Value = model.School;
        this.TBSelfInfo.Value = model.Introducetion;
        this.TBUserIdi.Value = model.Idi;
        this.TBUserName.Value = model.Call;
        this.TBUserNum.Value = model.Id.ToString(); ;
        this.TBWork.Value = model.UserWork;
        this.DDLBloodType.SelectedValue = model.BloodType;
        this.DDLCon.SelectedValue = model.Constellation;
        this.DDLSex.SelectedValue = model.Sex;
        this.DDLSS.SelectedValue = model.SX;
        this.IMGSelf.ImageUrl = model.Visualize;
        this.CurrentUserHead.ImageUrl = model.Head;
    }
}

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

AI 解读 AI

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

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