ASP.NET MVC: Order of view selection
Few days ago, I and one of my friends were discussing basic of ASP.NET MVC. After some discussion we came on point in which order views are selected. Because there can be more than one view with same name. For e.g. we can have index.aspx, index.ascx, index.cshtml, index.vbhtml and all this can be in controller specific folder as well shared folder. So in which order view is getting selected? Which view has higher priority? So to getting it clearly, quickly I changed action method to return view which does not exists as mentioned below.