Everyone, I use MVC 3 (Razor). I have the following problem:
I have general content divided into a partial view. But instead of putting it in the default location ( views/shared
or views/controller-name
), I need to put it in another place ( views/shared/new-folder
or view/controller-name/new-folder
).
I tried this: @Html.Partial("views/shared/new-folder/partial-view-name")
or even @Html.Partial("views/shared/new-folder/partial-view-name.cshtml")
, but it seems that MVC3 considers this parameter only as a view name and completely ignores any path information.
Maybe I did something wrong, can someone help me? :) Thanks a lot!
source share