Hidistro.UI.SaleSystem.zbCodeBehind/VMyFavorites.cs

(完整代码) 1KB

namespace Hidistro.UI.SaleSystem.zbCodeBehind
{
    using Hidistro.Entities.Members;
    using Hidistro.SaleSystem.Vshop;
    using Hidistro.UI.Common.Controls;
    using System;
    using System.Web.UI;

    [ParseChildren(true)]
    public class VMyFavorites : VMemberTemplatedWebControl
    {
        private VshopTemplatedRepeater rptProducts;

        protected override void AttachChildControls()
        {
            string url = this.Page.Request.QueryString["returnUrl"];
            if (!string.IsNullOrWhiteSpace(this.Page.Request.QueryString["returnUrl"]))
            {
                this.Page.Response.Redirect(url);
            }
            MemberInfo currentMember = MemberProcessor.GetCurrentMember();
            this.rptProducts = (VshopTemplatedRepeater) this.FindControl("rptProducts");
            this.rptProducts.DataSource = ProductBrowser.GetFavorites(currentMember);
            this.rptProducts.DataBind();
            PageTitle.AddSiteNameTitle("我的收藏");
        }

        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
            {
                this.SkinName = "skin-vMyFavorites.html";
            }
            base.OnInit(e);
        }
    }
}

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

AI 解读 AI

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

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