コード例 #1
0
ファイル: passage.aspx.cs プロジェクト: Liby99/FORMS_WEB
 private string generateComment()
 {
     string ret = "";
     DataRowCollection drc = SqlHelper.GetDataSet("SELECT TOP 10 [CUID] FROM [comment] WHERE [AUID] = '" + article.AUID + "' AND [status] = 1 ORDER BY [date_time] DESC").Tables[0].Rows;
     this.HasCommentAmount = drc.Count;
     if (HasCommentAmount != 0)
     {
         for (int i = 0; i < drc.Count; i++)
         {
             Comment comment = new Comment(drc[i]["CUID"].ToString());
             ret += comment.ToMobileHTML();
         }
         return ret;
     }
     else
     {
         return "";
     }
 }