@{
    PageInfo pageInfo = new PageInfo()
    {
        PageSize = 20,//每页显示10条数据
        CurrentPage = (int)ViewBag.CurrentPage //当前页码，系统预设
    };
    string kw = StringHelper.Format<string>(HttpContext.Current.Request.QueryString["kw"]);
}
<div class="margin-top-10 com-bd">
        @Html.Partial("BreadcrumbPartial")
        <div class="info-content pages-list" style="min-height:500px;">
            <ul class="m-newslist clearfix">
                @{
                    int num = 0;
                    foreach (var item in Html.InfoDataList(new{Table = "article"}, "[title] like @kw", new { kw = "%"+kw+"%" }, pageInfo))
                    {
                        num++;
                        string url = Html.InfoDataUrl((int)item.ColumnId, (int)item.Id);
                        string date = item.Thedate.ToString("yyyy-MM-dd");
                        <li class="clearfix">
                            <span class="fl title">
                                <a href="@url" target="_blank" title="@item.Title" class="text-ellipsis">@item.Title</a>
                            </span>
                            <span class="fr date">
                                @date
                            </span>
                        </li>
                    }
                }
            </ul>
             @if (num == 0) {
                     <div style="padding-left:20px;">暂无相关消息，请更换关键词重新搜索</div>
                }
            @Html.Partial("PagebreakPartial", pageInfo)
        </div>
</div>

