WebUI/UserPlugin/NewList/NewList.ascx.cs
(完整代码) 1KBusing HModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebUI.UserPlugin.NewList
{
public partial class NewList : System.Web.UI.UserControl
{
public string Category_id = "4",CateName="最新咨询";
public int TopCount = 10;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
List<ek_article> list4 = Bll.Bll_ek_article.GetEntityListByWhere(ek_article._.category_id == Category_id,
ek_article._.add_time.Desc).Take(TopCount).ToList();
gvNew4.DataSource = list4;
gvNew4.DataBind();
newCompName.InnerText = CateName;
}
}
public string subTitle(object str)
{
string title = str.ToString();
return Common.Utils.CutString(title, 20);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。