Copied to clipboard

Flag this post as spam?

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


  • Gary 7 posts 71 karma points
    Apr 28, 2015 @ 07:08
    Gary
    0

    Share partial view with other non-umbraco project

    Hi,

    We have partial header and footer for our umbraco 7 project. Now it needs to be integrated with another pure .net mvc project (the whole web application would become 50% umbraco and 50% .net mvc). We don't want to duplicate another header and footer for .net mvc project. So we would like to know is it any way we can do to let the .net mvc project use the partial views in umbraco (may be using web api)? Ajax will be the last option. Thanks.

    Cheers,

    Gary

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Apr 28, 2015 @ 17:20
    Alex Skrypnyk
    0

    Hi Gary,

    Umbraco partials are usual mvc partials, you can use them as you want. Only problem with @inherits attribute. You have to use the same model for both views.

    Thanks, Alex

Please Sign in or register to post replies

Write your reply to:

Draft