What is right way to define the routes.MapRoute() method in MVC?

 Posted by Allemahesh on 9/16/2013 | Category: ASP.NET MVC Interview questions | Views: 32479 | Points: 40
Select from following answers:
  1. routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" });
  2. routes.MapRoute("Default", "{controller}{action}{id}", new { controller = "Home", action = "Index", id = "" });
  3. routes.MapRoute("Default", "controller/action/id", new { controller = "Home", action = "Index", id = "" });
  4. routes.MapRoute("Default", "controller#action#id", new { controller = "Home", action = "Index", id = "" });
  5. All Above

Show Correct Answer


Source: http://www.asp.net/mvc/tutoria | Asked In: Company Online Tests | Alert Moderator 

Comments or Responses

Posted by: Chakravarthi on: 9/24/2013 | Points: 10
Thanks

Login to post response