MVC
moonavw
这个作者很懒,什么都没留下…
展开
-
对ASP.NET MVC Web Application项目模板的改进
自使用ASP.NET MVC框架以来(从Preview1到现在的Preview4)。一直受到MVC Web Application的Project Template和Item Template的影响,迁移过程中也有些麻烦,我认为Views里的CodeBehind和designer是多余的(仅个别需要asp.net form的时候使用这些)。为方便Views给页面美工设计,将Views剥离了cod原创 2008-08-21 21:07:00 · 509 阅读 · 0 评论 -
使用RESTful Routing
1,原REST, 8 Actions, 但是很多不支持HttpMethod:PUT,DELETEThe Eight Actions Action HTTP Method Default Url Description Index GET [controller] Gets a collection of resources Show GET [contr转载 2008-08-22 10:01:00 · 251 阅读 · 0 评论 -
我的RESTful Controller
在RESTful MVC中当然就要用RESTful Controller来体现REST魅力了, 统一的约束使得所有的Controller就清晰易读我的IRestfulController设计如下 public interface IRestfulController { ActionResult Index(int? page); ActionResult Sh原创 2008-08-24 10:52:00 · 322 阅读 · 0 评论