Ejemplo n.º 1
0
 protected override void AttachChildControls()
 {
     this.rptHelps       = (ThemedTemplatedRepeater)this.FindControl("rptHelps");
     this.pager          = (Pager)this.FindControl("pager");
     this.lblCategory    = (System.Web.UI.WebControls.Label) this.FindControl("lblCategory");
     this.lblhelpName    = (System.Web.UI.WebControls.Label) this.FindControl("lblhelpName");
     this.lblhelpcontent = (System.Web.UI.WebControls.Literal) this.FindControl("lblhelpcontent");
     if (!this.Page.IsPostBack)
     {
         if (!string.IsNullOrEmpty(this.Page.Request.QueryString["helpid"]))
         {
             int helpid = 0;
             int.TryParse(this.Page.Request.QueryString["helpid"], out helpid);
             HelpInfo helpInfo = CommentBrowser.GetHelp(helpid);
             if (helpInfo != null)
             {
                 HelpCategoryInfo helpCategory = CommentBrowser.GetHelpCategory(helpInfo.CategoryId);
                 PageTitle.AddSiteNameTitle(helpInfo.Title);
                 this.lblCategory.Text    = helpCategory.Name;
                 this.lblhelpName.Text    = helpInfo.Title;
                 this.lblhelpcontent.Text = helpInfo.Content;
             }
         }
         this.BindList();
     }
 }
Ejemplo n.º 2
0
        public void GetHelpContent(System.Web.HttpContext context)
        {
            string text = context.Request["helpid"].ToLower();

            if (!string.IsNullOrEmpty(text))
            {
                int helpid = 0;
                int.TryParse(text, out helpid);
                HelpInfo helpInfo = CommentBrowser.GetHelp(helpid);
                if (helpInfo != null)
                {
                    HelpCategoryInfo helpCategory = CommentBrowser.GetHelpCategory(helpInfo.CategoryId);
                    this.message = helpInfo.Content;
                }
            }
        }
Ejemplo n.º 3
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);
            }
        }
Ejemplo n.º 4
0
 protected override void AttachChildControls()
 {
     this.rptHelps = (ThemedTemplatedRepeater)this.FindControl("rptHelps");
     this.pager    = (Pager)this.FindControl("pager");
     if (!this.Page.IsPostBack)
     {
         if (!string.IsNullOrEmpty(base.GetParameter("CategoryId", false)))
         {
             int categoryId = 0;
             int.TryParse(base.GetParameter("CategoryId", false), out categoryId);
             HelpCategoryInfo helpCategory = CommentBrowser.GetHelpCategory(categoryId);
             if (helpCategory != null)
             {
                 PageTitle.AddSiteNameTitle(helpCategory.Name);
             }
         }
         else
         {
             PageTitle.AddSiteNameTitle("帮助中心");
         }
         this.BindList();
     }
 }
Ejemplo n.º 5
0
 protected override void AttachChildControls()
 {
     this.rptHelps = (ThemedTemplatedRepeater)this.FindControl("rptHelps");
     this.pager    = (Pager)this.FindControl("pager");
     if (!this.Page.IsPostBack)
     {
         if (!string.IsNullOrEmpty(this.Page.Request.QueryString["CategoryId"]))
         {
             int result = 0;
             int.TryParse(this.Page.Request.QueryString["CategoryId"], out result);
             HelpCategoryInfo helpCategory = CommentBrowser.GetHelpCategory(result);
             if (helpCategory != null)
             {
                 PageTitle.AddSiteNameTitle(helpCategory.Name, HiContext.Current.Context);
             }
         }
         else
         {
             PageTitle.AddSiteNameTitle("帮助中心", HiContext.Current.Context);
         }
         this.BindList();
     }
 }