Esempio n. 1
0
 /// <summary>
 /// 输出
 /// </summary>
 /// <param name="output">The output.</param>
 protected override void Render(HtmlTextWriter output)
 {
     if (this.Rid != null)
     {
         ROYcms.Sys.BLL.ROYcms_news ___ROYcms_news = new ROYcms.Sys.BLL.ROYcms_news();
         try
         {
             ___ROYcms_news.Hits_news(Convert.ToInt32(this.Rid));
             output.Write("<!--浏览一次!-->");
         }
         catch { output.Write("<!--无分页数据!-->"); }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 输出
 /// </summary>
 /// <param name="output">The output.</param>
 protected override void Render(HtmlTextWriter output)
 {
     if (this.Rid != null)
     {
         ROYcms.Sys.BLL.ROYcms_news ___ROYcms_news = new ROYcms.Sys.BLL.ROYcms_news();
         try
         {
             if (ROYcms.Common.cooks.GetCookie(this.Rid) == null)
             {
                 ___ROYcms_news.Hits_news(Convert.ToInt32(this.Rid));
                 ROYcms.Common.cooks.SaveCookie(this.Rid, this.Rid, 30);
                 output.Write("<!--浏览一次!-->");
             }
             else
             {
                 output.Write("<!--重复的信息浏览!-->");
             }
         }
         catch { output.Write("<!--浏览信息记入数据库出错!-->"); }
     }
 }