I am using VS 2012 and MVC 4. I am creating a simple CMS, so content of my pages will be dynamically updated, from c# code. (Content of each page with markups will be saved in the database).
The thing I don't know is how to update @renderbody or @rendersection from code (from C# controller)?
Example:
I have a master page:
I have a content page that is derived from that master page:
I want to get all that content from C# code. The reason for this is that my content will be in the database and there's gonna be a lot of pages, so content will change dynamically, depending on search conditions (I am creating a simple knowledge base, so users will be able to bold text, change text size and so on).
EDIT Thanks for pointing out that I haven't asked precisely enough - I am fetching content (which includes some HTML markups) from the database, not HTML for my pages. Example: MVC 4 Razor engine - content like this will be in the database.