I have some email templates written in HTML format, and i need to use it in my code behind to pass some values.
you know in code behind i want to pass it to the Message Body property so it should be one line,
is there any easy why to do so, Regular expression replace or any other trick to avoid the manual formatting,
I’m not sure I understand completly what you’re trying to do. But if you have some kind of constant multilined text that you would like to insert into a variable, you can do it using the
@keyword.This, for instance, will compile just fine:
Of course, constants should be used instead, but this is just an example.