.net - Escape & in App.config -


i have following piece of config in app.config file:

<add key="connectionstring"       value="initial catalog=mydatabase;data source=myserver;user id=myuser;password=!&mypass99;"/> 

the above connection string rejected visual studio intellisense. says entity mypass99 not defined. problem caused & in password.

how escape it?

escape ampersand using &amp; in place of &

as fyi, see here further characters: what characters need escape in xml documents?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -