int currentPage = StringHelper.Format<int>(Html.CustomViewParameter("page"))的下面加一行
var columnId=StringHelper.Format<int>(Request.QueryString["columnId"]); //栏目id参数
Html.InfoDataList(new { Table = "news" }, "title like @kw", new { kw = "%" + kw + "%" }, pageInfo);
改为
Html.InfoDataList(new {Table="news"}, "columnId=@columnId and title like @kw", new {columnId=columnId, kw="%"+kw+"%" , pageInfo},