I am trying to read my database name from the app.config file in C#
in the app.config it is stored as
but when i say
it comes out as
"Q-x\\x" which of course causes my connection string i am building to fail due to the double \
how can i fix this so that it comes out with only one slash???
Appreciate the help!!
in the app.config it is stored as
Code:
<add key="DataBaseServer" value="Q-x\x"/>
Code:
_ServerName = ConfigurationManager.AppSettings.Get("DataBaseServer");
"Q-x\\x" which of course causes my connection string i am building to fail due to the double \
how can i fix this so that it comes out with only one slash???
Appreciate the help!!
Comment