I have a AppSetting in web.config.
<add key="key" value="\n|\r"/>
When i read it by ConfigurationManager.AppSettings["key"] it gives "\\n|\\r". Why ?
Home / DeveloperSection / Forums / ConfigurationManager.AppSettings convert “\n” to “\\n” why?
I have a AppSetting in web.config.
<add key="key" value="\n|\r"/>
When i read it by ConfigurationManager.AppSettings["key"] it gives "\\n|\\r". Why ?
Sumit Kesarwani
22-Aug-2014ConfigurationManager.AppSettings["Key"].Replace("\\n", "\n")