public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapR... Read More
posted @ 2014-09-26 10:52 一夜秋2014 Views(310) Comments(0) Diggs(0) Edit
MVC中,在Controllers查询到数据,返回一个实体给View并显示,可以用@Html.DisPlayFor(model=>model.newsName)和 @Model.newsName这两种方式显示某个字段数据(如newsName),但是,这两者是用区别的,即如果Controllers中没... Read More
posted @ 2014-09-26 10:48 一夜秋2014 Views(8311) Comments(2) Diggs(0) Edit