Beispiel #1
0
        protected override void AttachChildControls()
        {
            PageTitle.AddSiteNameTitle("帮助与反馈");
            Member member = HiContext.Current.User as Member;

            if (member == null)
            {
                this.Page.Response.Redirect("/Vshop/Login.aspx");
            }
            this.helpCategories = (VTemplatedRepeater)this.FindControl("helpCategories");

            this.helpCategories.DataSource = CommentBrowser.GetHelpCategories();
            this.helpCategories.DataBind();
        }
Beispiel #2
0
        protected override void AttachChildControls()
        {
            this.helpItems = (VTemplatedRepeater)this.FindControl("helpItems");

            if (!int.TryParse(this.Page.Request.QueryString["CategoryId"], out this.CategoryId))
            {
                base.GotoResourceNotFound("");
            }
            else
            {
                this.helpItems.DataSource = CommentBrowser.GetHelpByCateGoryId(this.CategoryId);
                this.helpItems.DataBind();

                string name = CommentBrowser.GetHelpCategory(this.CategoryId).Name;

                PageTitle.AddSiteNameTitle(name);
                //WAPHeadName.AddHeadName(name);
            }
        }