版主请问 , 把文章推送到两个不同的栏目以后,在数据库里面该文章就有2个不同的id,搜索结果就是重复的,以下的语句要怎么改呢?OrderBy = "id desc"
string kw = Request.QueryString["kw"];
var dataList = Html.InfoDataList(new { Table = "news", OrderBy = "id desc" }, "[title] like @kw", new { kw = "%" + kw + "%" }, pageInfo);