EasyShop/Product.Master.cs

(开头部分) 21KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyModels;
using System.Data;
using conn;
using Common;
using ExeSql;
using System.Text;
namespace EasyShop
{
    public partial class Product : Base_MasterPage
    {
        string Url_Pid;
        public string strUserName = "";
        public string strLoginReg = "";
        public string strHotSearch = "";
        protected string ShowLeftProMenuList, Show_ChildProduct_Info_Str, Five_And_Ten_Str;
        object IsXuNi, IsNewProPage;
        protected void Page_Load(object sender, EventArgs e)
        {
            IsXuNi = (Request.QueryString["IsXuNi"] != null ? Request.QueryString["IsXuNi"] : "");
            IsNewProPage = (Request.QueryString["ShowNew"] != null ? Request.QueryString["ShowNew"] : "");
            ShowLeftProMenuList = GetLeftProMenuList();
            if (!string.IsNullOrWhiteSpace(Url_Pid) || !string.IsNullOrWhiteSpace(IsXuNi.ToString()) || !string.IsNullOrWhiteSpace(IsNewProPage.ToString()))
            {
                Show_ChildProduct_Info_Str = Show_ChildProduct_Info();
            }
            else
            {
                Five_And_Ten_Str = Five_And_Ten();
            }
            Load_Two_TongGou();
           
            if (!IsPostBack)
            {
                strHotSearch = GetHotSearch();
            }
        }
        public string GetHotSearch()//获取热门搜索
        {
            string dem = "";
            TB_MC_Product tmp = new TB_MC_Product();
            DataSet ds = tmp.GetHotSearchInfo(5);
            int num = ds.Tables[0].Rows.Count;
            for (int i = 0; i < num; i++)
            {
                string ID = ds.Tables[0].Rows[i][0].ToString();
                string Name = ds.Tables[0].Rows[i][1].ToString();
                Name = Name.Replace("(", "");
                Name = Name.Replace(")", "");
                if (Name.Length > 6)
                {
                    Name = Name.Substring(0, 5);
                }
                dem += "<a href=\"ProductInfo.aspx?ID=" + ID + "\">" + Name + "</a>";
            }
后面还有 403 行代码,购买后查看完整代码

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

AI 解读 AI

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

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