MainFrm.aspx.cs

(完整代码) 1KB

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;

public partial class MainFrm : System.Web.UI.Page
{
    public int selfId;
    public string userHead;
    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();
            WebHL.Model.TBUserInformation model=new WebHL.Model.TBUserInformation();
            selfId = 0;
            string result = validate.ValidateLoginNameAndPsw(Server.HtmlEncode(Request.QueryString["userName"]), Request.QueryString["userPassword"], ref selfId);
            if (result == "验证通过")
            {
                this.TBSelfId.Value = selfId.ToString().Trim();

                this.TBSelfPassword.Value = Request.QueryString["userPassword"];
                this.TBSelfLoginName.Value = Request.QueryString["userName"];
                model=validate.GetModel(selfId);
                this.TBSelfCall.Value = model.Call;
                userHead = model.Head;
                WebHL.BLL.TBUserDefGroup bllSelfGroup = new WebHL.BLL.TBUserDefGroup();
                DDLSelfGroup.DataSource = bllSelfGroup.GetUserDefineGroupList(selfId);
                DDLSelfGroup.DataTextField = "GroupName";
                DDLSelfGroup.DataValueField = "Id";
                DDLSelfGroup.DataBind();
            }
            else
            {
                WebHL.MessageBox.Show(this.Page, result);
            }
        }
    }
}

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

AI 解读 AI

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

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