Marty Trenouth
Marty Trenouth

Reputation: 3752

Masterpage with a dynamic template

In MVC.NET, how should I dynamically populate the HTML structure from a database into a Masterpage where the first the template needs to wrap the masterpage contents?

AKA

   -- master page header stuff goes here --
   ... 
   -- Beginning of client template goes here --
   ...
   -- masterpage contents goes here --
   ... 
   -- End of client template goes here --

Upvotes: 0

Views: 150

Answers (1)

chris
chris

Reputation: 37490

You can embed multiple content blocks in the master page:

   -- master page header stuff goes here --
   ... 
   -- content block 1 goes here --
   ...
   -- masterpage contents goes here --
   ... 
   -- content block 2 goes here --

Upvotes: 3

Related Questions