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 mas开发者_JS百科terpage contents?
AKA
-- master page header stuff goes here --
...
-- Beginning of client template goes here --
...
-- masterpage contents goes here --
...
-- End of client template goes here --
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 --
精彩评论