asp.net mvc - How to override some razor views -


asp.net & mono mvc4 application uses razor cshtml views views folders.

application deployed number of sites.

in customer sites customers want override views add spcific visual design. using specific csss seems to sufficient.

how allow override views

customer specific views can stored in database. how force razor view engine specific view override in database , use if exists ? if view not found, standard 1 cshtml file should used. or possible add come command standard cshtml files check , switch specific view if exists ?

you have create own virtual path provider , custom razor view engine ( inherited default one)

following link on that.

http://www.umbraworks.net/bl0g/rebuildall/2009/11/17/asp_net_mvc_and_virtual_views http://haacked.com/archive/2009/04/22/scripted-db-views.aspx/

it not related razor surely same.

90% case custom virtual path provide solve problem.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -