I’ve read a couple of articles on using asp.net mvc3 razor (which I am fairly new to). I have a couple of .cshmtl pages which are like shared content (e.g. header). They are basically just html pages with one or two divs etc.
To embed this in my main page, do I just use @renderPage(“page address”). Do I also need a call to @renderbody? Do I need to specify the/a page in the layout property?
Thanksa
You can create a Partial View for each of these and call:
Or you can use sections, or this article on sections might help too.