Beispiel #1
0
        protected override void AttachChildControls()
        {
            this.helpItems = (WapTemplatedRepeater)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);
            }
        }