Web.UI/Contents.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using cosmos.Common;

namespace cosmos.Web.UI
{
   public  class Contents
    {
        public static string ViewTxtList(int top, int txtNum, string strWhere, string orderby)
        {
            cosmos.BLL.Contents bll = new cosmos.BLL.Contents();
            StringBuilder strTxt = new StringBuilder();
            DataSet ds = bll.GetList(top, strWhere, orderby);
            if (ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    DataRow dr = ds.Tables[0].Rows[i];
                    strTxt.Append("<li><a href=\"About.aspx?action=" + dr["Title"].ToString() + "&&Id=" + dr["Id"].ToString() + "\" title=\"" + dr["Title"].ToString() + "\">" + Utils.CutString(dr["Title"].ToString(), txtNum) + "</a></li>\n");
                }
            }

            return strTxt.ToString();
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。