I'm starting to use ASP.NET MVC2 and I was using [AcceptVerbs(HttpVerbs.Get)]
, so I changed to [HttpGet]
and now I get a blank page!
I know I've missed something what is it?
The working version looks like this:
[AcceptVerbs(HttpVerbs.Get)]
public ActionResult Details(int id)
{
...
}
When I change it to this it fails to execute the method and dispays a blank page:
[HttpGet]
public ActionResult Details(int id)
{
...
}
And the routing for this is defined as:
routes.MapResourceRoute("component", "{id}");