HLZone/iframeChannel.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 HLZone_iframeChannel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            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 != "不存在该用户")
                {
                    WebHL.BLL.TBUserChannel channel = new WebHL.BLL.TBUserChannel();
                    string strWhere = "BelongUserId=" + userId.ToString();
                    DataTable dt = channel.GetList(100, 1, strWhere).Tables[0];
                    string channelString = string.Empty;
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        channelString += dt.Rows[i]["id"];
                        channelString += "$%";
                        channelString += dt.Rows[i]["ChannelName"];
                        channelString += "$|";
                    }
                    channelString = channelString.Remove(channelString.Length - 2, 2);
                    this.HidChannelArray.Value = channelString;
                }
                else
                {
                    WebHL.MessageBox.Show(this.Page, result);
                }
            }
            else
            {

            }
        }
        catch (Exception ex)
        {
            WebHL.MessageBox.Show(this.Page, ex.Message);
        }
    }
}

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

AI 解读 AI

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

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