I'm setting up my first site using Razor. I have a Scripting File (.cshtml) that renders some tabs from a set of divs. I'd like to break my code down into more manageable chunks and place the contents of each div into a seperate .cshtml file.
How do I include those seperate files in the main .cshtml for my tab layout?
I have found an post with the same topic. I think this can help you further. I this post Owen suggestthat you try. But take a look at the post at the link below.
Nested Scripting Files?
I'm setting up my first site using Razor. I have a Scripting File (.cshtml) that renders some tabs from a set of divs. I'd like to break my code down into more manageable chunks and place the contents of each div into a seperate .cshtml file.
How do I include those seperate files in the main .cshtml for my tab layout?
Hi Connie,
I have found an post with the same topic. I think this can help you further. I this post Owen suggest that you try. But take a look at the post at the link below.
http://our.umbraco.org/forum/developers/razor/26993-Calling-Razor-from-Razor
Hope this can help you to solve your issue.
/Dennis
That worked, thank you.
Hi Connie,
I´m glad that I could guide you to a solution :-)
/Dennis
is working on a reply...