Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Connie DeCinko 931 posts 1160 karma points
    Oct 16, 2013 @ 20:21
    Connie DeCinko
    0

    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?

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 16, 2013 @ 20:31
    Dennis Aaen
    100

    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.

    @RenderPage("Header.cshtml")

    http://our.umbraco.org/forum/developers/razor/26993-Calling-Razor-from-Razor

    Hope this can help you to solve your issue.

     

    /Dennis

  • Connie DeCinko 931 posts 1160 karma points
    Oct 16, 2013 @ 21:13
    Connie DeCinko
    0

    That worked, thank you.

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 16, 2013 @ 21:16
    Dennis Aaen
    0

    Hi Connie,

    I´m glad that I could guide you to a solution :-)

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft