Web Config and regular string literal

G

Guest

I am trying to keep the body of an email message in the web.config, something
like
"We have received ..... blah.. blah.. \n Thank you, \n ... some whitty
closing line".

Anyway, when I read this it is always coming back as a verbatim string
literal and the email contains the escape chars (\n). How can I make this a
regular string literal so that the email body will recognize the escape
characters?

Thank you
 
G

Guest

I love replying to my own post.

somestring.Replace(@"\n",Convert.ToChar(10).ToString())

Fixed it. Thanks gotdotnet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top