How to Render content include razor syntax in asp.net mvc 3 -


in database there record include razor syntax "hello @model.name, wellcome ..." when record view how can render model property ?

thanks,

there many ways.

  1. pulling view database rather file
  2. http://razorengine.codeplex.com
  3. http://ibashir.blogspot.com/2010/11/razor-parser-without-mvc.html
  4. http://blog.andrewnurse.net/2010/07/22/usingtherazorparseroutsideofaspnet.aspx

i'm biased towards razorengine codeplex it's been used in mini-profiler developers of site.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -