Exemplo n.º 1
0
        protected override void AttachChildControls()
        {
            string url = this.Page.Request.QueryString["returnUrl"];

            if (!string.IsNullOrWhiteSpace(this.Page.Request.QueryString["returnUrl"]))
            {
                this.Page.Response.Redirect(url);
            }
            string str2 = this.Page.Request.QueryString["status"];

            if (string.IsNullOrEmpty(str2))
            {
                str2 = "1";
            }
            MemberInfo currentMember = MemberProcessor.GetCurrentMember();
            int        num           = 0;

            int.TryParse(str2, out num);
            this.rptUseableCouponList = (VshopTemplatedRepeater)this.FindControl("rptUseableCouponList");

            this.rptCouponsAct              = (VshopTemplatedRepeater)this.FindControl("rptCouponsAct");
            this.rptCouponsAct.ItemCommand += new RepeaterCommandEventHandler(this.rptCouponsAct_ItemCommand);
            this.rptCouponsAct.DataSource   = CouponHelper.GetCouponsActNow();
            this.rptCouponsAct.DataBind();

            DataTable dtData = VshopBrowser.GetLotteryActivity_Valid(0, currentMember.UserId);

            this.rptUseableCouponList.DataSource = dtData;
            this.rptUseableCouponList.DataBind();

            PageTitle.AddSiteNameTitle("微信红包活动");
        }