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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -