摘要: [HttpPost] vs [AcceptVerbs(HttpVerbs.Post)] is there a difference?1、the HttpPost attributeis a short for the HttpVerbs.Post one but since MVC 2.0. 2、[HttpPost] is shorthand for [AcceptVerbs(HttpVerbs.Post)]. The only difference is that you can't use [HttpGet, HttpPost] (and similar) together on 阅读全文
posted @ 2011-04-29 10:06 hapus 阅读(5525) 评论(2) 推荐(1) 编辑