ASP.NET MVC Master Page
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 开发者_StackOverflow中文版template.
Is this possible?
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.
精彩评论