using System; using System.Configuration; using System.Collections.Specialized; using System.Text.RegularExpressions; using System.IO; using System.Text; using System.Data; namespace RM.Pub { public class Article { protected string TemplateUrl; protected string CacheUrl; protected string BufText; protected int _ArtID; /// <summary> /// 构造函数 /// </summary> public Article(string TemplateUrl, string tplFileName) { this.TemplateUrl = System.Web.HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["TemplateUrl"] + tplFileName); this.BufText = Files.loadFile(this.TemplateUrl); } /// <summary> /// 设置或获取文章编号 /// </summary> public int ArtID { set { _ArtID = value; } get { return _ArtID;