HLZoneFrm2.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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.Text;
public partial class HLZoneFrm2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["userId"] != null && Request.QueryString["userPassword"] != null)
        {
            WebHL.BLL.TBUserInformation validate = new WebHL.BLL.TBUserInformation();
            int userId = Convert.ToInt32(Request.QueryString["userId"]);
            string result = validate.ValidateIdAndPsw(userId, Request.QueryString["userPassword"]);
            if (result == "验证通过")
            {
                this.TBUserType.Value = "IsMaster";
                this.TBSelfId.Value = userId.ToString().Trim();
                this.TBUserName.Value = Request.QueryString["userName"];
                this.TBPsw.Value = Request.QueryString["userPassword"];
                WebHL.BLL.TBUserChannel channel = new WebHL.BLL.TBUserChannel();
                string strWhere = "BelongUserId=" + userId.ToString() + " and Type='UserDefine'";
                DataTable dt = channel.GetList(100, 1, strWhere).Tables[0];
                StringBuilder sBuilder = new StringBuilder();
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    sBuilder.Append(dt.Rows[i]["id"]);
                    sBuilder.Append("$%");
                    sBuilder.Append(dt.Rows[i]["ChannelName"]);
                    sBuilder.Append("$%");
                    sBuilder.Append(dt.Rows[i]["ChannelFrm"]);
                    sBuilder.Append("$|");
                }
                if (sBuilder.Length > 0)
                    sBuilder.Remove(sBuilder.Length - 2, 2);
                this.TBDefineChannelData.Value = sBuilder.ToString();

                strWhere = "BelongUserId=" + userId.ToString() + " and Type='UserDiary'";
                dt = channel.GetList(100, 1, strWhere).Tables[0];
                this.TBDiaryChannelId.Value = dt.Rows[0]["id"].ToString();
            }
            else
            {
                WebHL.MessageBox.Show(this.Page, result);
            }
        }
        else if (Request.QueryString["userId"] != null)
        {
            WebHL.BLL.TBUserInformation validate = new WebHL.BLL.TBUserInformation();
            int userId = Convert.ToInt32(Request.QueryString["userId"]);
            string result = validate.ValidateIdAndPsw(userId, "");
            if (result != "不存在该用户")
            {
                this.TBUserType.Value = "IsGuest";
后面还有 30 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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