In an MVC application, what are the segments of the default route ?

 Posted by Bharathi Cherukuri on 8/27/2012 | Category: ASP.NET MVC Interview questions | Views: 3978 | Points: 40

There are 3 segments of the default route in an MVC application.They are:

The 1st segment is the Controller Name.
Example: search

The 2nd segment is the Action Method Name.
Example: label

The 3rd segment is the Parameter passed to the Action method.
Example: Parameter Id - MVC

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response