Beispiel #1
0
 /// <summary>
 /// 分页方法
 /// </summary>
 /// <param name="html"></param>
 /// <param name="mmcoyPager">分页对象</param>
 /// <returns></returns>
 public static MvcHtmlString ToPagerHtml(this HtmlHelper html, MFPagerSplit mmcoyPager)
 {
     if (!mmcoyPager.IsNullOrEmpty())
     {
         return(new MvcHtmlString(mmcoyPager.PagerSplitString));
     }
     else
     {
         throw new ArgumentNullException("分页对象为空!");
     }
 }
Beispiel #2
0
 /// <summary>
 /// 分页方法
 /// </summary>
 /// <param name="html"></param>
 /// <param name="mmcoyPager">分页对象</param>
 /// <param name="routeData">路由数据</param>
 /// <returns></returns>
 public static MvcHtmlString ToPagerHtml(this HtmlHelper html, MFPagerSplit mmcoyPager, RouteData routeData)
 {
     if (!mmcoyPager.IsNullOrEmpty())
     {
         mmcoyPager.Area = routeData.DataTokens["area"].ObjectToString();
         return(new MvcHtmlString(mmcoyPager.PagerSplitString));
     }
     else
     {
         throw new ArgumentNullException("分页对象为空!");
     }
 }