现在的位置: 首页 > 综合 > 正文

test

2013年12月10日 ⁄ 综合 ⁄ 共 1159字 ⁄ 字号 评论关闭
  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using BlogServer.Framework.Configuration;
  12. namespace BlogServer.Web
  13. {
  14.     public partial class AggSiteHome : System.Web.UI.MasterPage
  15.     {
  16.         protected void Page_Load(object sender, EventArgs e)
  17.         {
  18.             this.lnkSiteTitle.NavigateUrl = Config.Settings.AggregateUrl;
  19.             string title = "";
  20.             BlogConfig config = Config.CurrentBlog(Context);
  21.             if (config.BlogID == -1)
  22.             {
  23.                 title = Config.Settings.HomePageTitle;
  24.             }
  25.             else
  26.             {
  27.                 title = config.Title;
  28.             }
  29.             
  30.             this.Page.Title = Config.Settings.SiteTitle +" - "+title;
  31.             HtmlLink RSSLink = this.Page.Header.FindControl("RSSLink"as HtmlLink; ;
  32.             if (RSSLink != null)
  33.             {
  34.                 RSSLink.Attributes.Add("href", config.FullyQualifiedUrl + "rss");
  35.             }
  36.             
  37.         }       
  38.        
  39.     }
  40. }



抱歉!评论已关闭.