摘要: 我按照网上的教程自定义helperpublicstaticclassHtmlExtensions{publicstaticstringSpan(thisHtmlHelperhelper,stringstrId,stringstrContent){returnstring.Format("<spanid=\"{0}\">{1}</span>",strId,strContent);}}然后在页面使用@usingWeb.Extentions;@{ViewBag.Title="Index";}<h2>Ind 阅读全文
posted @ 2012-02-06 10:15 gzl 阅读(573) 评论(0) 推荐(0) 编辑