c# - ASP.Net Webproject - Textfiles java like with velocity -


i absolutely new asp.net developmentent , have been working through tutorials since now.

one thing missing java way externalize text files, can contain variables. in java using velocity such purpose.

i need user specific email.

in java load a text file this:

hello mr. $name, registration. customer id is: $customerid .... 

now i able load text file via velocity , replace given variables easyly.

is there way in asp.net? if not, proper way this?

you define email template in mvc view, render view string, using model provide replacements. see 'razor .cshtml style' part of answer this post technical details of rendering view string.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -