摘要:
使用 ConfigurationSection 创建自定义配置节 1.创建自定义配置节处理程序 namespace BlogEngine.Core.Providers{ /// <summary> /// A configuration section for web.config. /// </summary> /// <remarks> /// In the... 阅读全文
摘要:
ASP.NET 的母版页让你能够轻松地创建和维护Web网站上一致的外观。你可以用母版页来定义整个网站的显示,或者网站的一组子页面。母版页含有所有的顶级HTML元素。这包括html、页头、正文和HTML窗体元素,因此内容页面不应该含有这些元素。头元素必须带有runat=server属性,而且在运行期间其头文本要用内容页面的标题文本来替换。母版页包括内容占位符控件,以接纳来自内容页面的输出。 在Blo... 阅读全文
摘要:
private static Regex _Regex = new Regex("<[^>]*>", RegexOptions.Compiled);private static string StripHtml(string html){if (string.IsNullOrEmpty(html))return string.Empty; return _Regex.Replac... 阅读全文