62,263
社区成员
发帖
与我相关
我的任务
分享public static MvcHtmlString Pager(this System.Web.Mvc.HtmlHelper html, int pn, int ps, int cnt, int pc, RouteValueDictionary routes)
{
UrlHelper helper = new UrlHelper(html.ViewContext.RequestContext);
string url = helper.Action("Detail", "Article", routes);
// string url = helper.Action("Detail", "Article", new {id="25"}); 也为空值
}