protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["Type"])) { if (Request.QueryString["Type"] == "add") { Response.Write("<script type='text/javascript'>alert('添加成功!')</script>"); } else if (Request.QueryString["Type"] == "update") { Response.Write("<script type='text/javascript'>alert('修改成功!')</script>"); } } // BindCategory(new Guid("5328ebeb-4683-4e3b-8724-0daaa32d74bd")); BindCategory(new Guid("d30be3bb-5c2b-416f-af72-e8b8a29683b6")); //anp.RecordCount = cmssservice.GetArticleCountOfCategory(new Guid("5328ebeb-4683-4e3b-8724-0daaa32d74bd")); anp.RecordCount = cmssservice.GetArticleCountOfCategory(new Guid("d30be3bb-5c2b-416f-af72-e8b8a29683b6")); } }
public StatisticsInfo() { CMSService cms = new CMSService(); ArticleDspModel a = cms.GetLatestArticle(string.Empty); if (null != a) { this.LastArticle = a; } this.ArticleCount = cms.GetArticleCountOfCategory(Guid.Empty); //访问统计 // }