EasyShop/PersonCenter/Member_Favirate.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 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 System.Data.SqlClient;
using Easy.COMMON;

namespace EasyShop.PersonCenter
{
    public partial class Member_Favirate : Base_Page
    {
        // Methods
        public string jsString = string.Empty;
        private void BindList()
        {
            string userid = conn.MyCookie.getCookie("UserID");
            TB_MC_ProductMyFavorites tmpm = new TB_MC_ProductMyFavorites();
            DataSet ds = tmpm.GetFavoriteList(" a.UserNo="+userid+"");
            repList.DataSource = ds;
            repList.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(Login_UserId))
            {
                string reurl = Request.RawUrl.ToString();
                System.Web.HttpContext.Current.Response.Redirect("/login.aspx?ReturnUrl=" + reurl + "");
            }
            if (!base.IsPostBack)
            {
                this.BindList();
            }
        }
        /// <summary>
        /// 防止空值
        /// </summary>
        /// <param name="imgbig"></param>
        /// <returns></returns>
        protected string FirtImg(object imgbig)
        {
            string[] arr = MyModels.Global.Img_Big_ToArray(imgbig);
            return arr != null && arr.Length > 0 ? arr[0] : string.Empty;
        }
        protected void repList_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            if (string.IsNullOrEmpty(Login_UserId))
            {
                string reurl = Request.RawUrl.ToString();
                System.Web.HttpContext.Current.Response.Redirect("/login.aspx?ReturnUrl=" + reurl + "");
            }
            if (e.CommandName == "del")
            {
                string id = e.CommandArgument.ToString();
                if (!string.IsNullOrEmpty(id))
                {
                    TB_MC_ProductMyFavorites tmp=new TB_MC_ProductMyFavorites();
后面还有 22 行代码,购买后查看完整代码

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

AI 解读 AI

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

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