eZeeNow.com

it's your's

ASP.NET MVC - Html.RenderAction not working _layout.cshtml page

 ASP.NET MVC - Html.RenderAction not working _layout.cshtml page

_Layout.cshtml


<body>
    <div class="main_page">
        <div id = "header">
            *@Html.Partial("HeaderPartial", @Model)*@
            @Html.Action("Header")
        </div>        
        <div id="body">
            @RenderBody()
        </div>
        <div id="footer">
        </div>
</body>
Solution is use @{ SERVER TAG }

@{ Html.RenderAction("Header", "Home"); }

Comments (2) -

  • long tail pro Discount

    8/22/2016 1:22:45 PM | Reply

    A lot of people have seen returning discomfort someday within their day-to-day lives. The causes of Neck Pain tend to be many; many tend to be self-inflicted caused by a use of bad practices. Other rear discomfort causes include accidents, muscle mass ranges, along with athletics incidents. Even though the will cause can be different, most often these people reveal the identical signs or symptoms.

  • Redovisningsbyrå göteborg

    1/13/2017 1:13:03 PM | Reply

    Whats up this is kind of of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I'm starting a blog soon but have no coding expertise so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!

Loading