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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -