EasyShop/PersonCenter/Member_Cart.aspx.cs

(开头部分) 6KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyModels;
using MyModels.Db;
using System.Data;
using System.Data.SqlClient;


namespace EasyShop.PersonCenter
{
    public partial class Member_Cart : Base_Page
    {
        public string strHotSearch = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            Init_My_Car();
            Load_JsTable();
            Load_Maybe_Love();
        }

        protected List<MyModels.Db.TB_MC_MyCar> My_Cars;
        private MyModels.My_Cars car;
        void Init_My_Car()
        {
            if (!string.IsNullOrEmpty(Login_UserId))
            {
                car = new My_Cars();
                My_Cars = car.GetMyCars(Login_UserId);
            }
            else
            {
                string reurl = Request.RawUrl.Replace("/", "").Replace("\\", "").ToString();
                System.Web.HttpContext.Current.Response.Redirect("/login.aspx?ReturnUrl=" + reurl + "");
            }
        }
        protected string First_Image(string img_big)
        {
            if (string.IsNullOrWhiteSpace(img_big)) return "";
            var arr =
                (from i in img_big.Split(new char[] { ',', ';' }) where !string.IsNullOrWhiteSpace(i) select i).ToArray();
            if (arr == null || (arr != null && arr.Length == 0)) return "";
            return arr[0];
        }
        protected void car_Dispose()
        {
            if (car != null) car.Dispose();
            car = null;
        }
        public string GetHotSearch()//获取热门搜索
        {
            string dem = "";
            MyModels.TB_MC_Product tmp = new MyModels.TB_MC_Product();
            DataSet ds = tmp.GetHotSearchInfo(5);
            int num = ds.Tables[0].Rows.Count;
            for (int i = 0; i < num; i++)
后面还有 92 行代码,购买后查看完整代码

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

AI 解读 AI

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

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