By Default IIS will search for a view based on the Action method name in following orde
~/Views//.aspx
~/Views//.ascx
~/Views/Shared/.aspx
~/Views/Shared/.ascx
~/Views//.cshtml
~/Views//. cshtml
~/Views/Shared/. cshtml
~/Views/Shared/. Cshtml
Note: It searches for a view than a partial view. Also it searches for a aspx page(ASPX rendering engine) first than a cshtml page(Razor engine)
Comments