protected override void AttachChildControls() { this.helpCategories = (WapTemplatedRepeater)this.FindControl("helpCategories"); this.helpCategories.DataSource = CommentBrowser.GetHelpCategories(); this.helpCategories.DataBind(); PageTitle.AddSiteNameTitle("帮助中心"); WAPHeadName.AddHeadName("帮助中心"); }
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(); }
protected override void OnInit(EventArgs e) { base.DataSource = CommentBrowser.GetHelpCategories(); base.DataBind(); }