views:

119

answers:

2

hi Guys

How can one do this?

I would like to save the master pages template in the database and then based on a query string pull the correct template.

Is this possible?

A: 

This article by Phil Haack may be of some help to you:

Scripting ASP.NET MVC Views Stored In The Database

http://haacked.com/archive/2009/04/22/scripted-db-views.aspx

It's not directly related to Master Pages however the concepts Phil talks about and uses in his article could be just what you're looking for.

Jamie Dixon
I can render the template fine but, the content place holder controls are being abit more ticky any ideas?
john
A: 

I can get the template to render but the content place holders render as plain html as they are not added to the page. Any ideas how I can get over this hurdle?

john
Don't write questions in answers area. Rather edit your original question...
Robert Koritnik