摘要:
HtmlHelper的扩展: 注意点:扩展方法必须是静态方法,所在的类必须是静态类,所在的命名空间改成System.Web.MVC则能省略页面中必须添加命名空间的约束。 //主要就是输出分页的超级链接的标签 //自定义分页Helper扩展 public static HtmlString S... 阅读全文
摘要:
.page_nav{clear:both; padding:15px 0; color:#666; font:normal 12px/24px Arial; text-align:center;}.page_nav a{display:inline-block; height:22px; margi... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Configuration;using System.Data;using System.Data.SqlCli... 阅读全文
摘要:
namespace System.Web.Mvc.Html{ public static class helperext { public static HtmlString mylabel(this HtmlHelper helper, string text) ... 阅读全文