.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 & in place of &
as fyi, see here further characters: what characters need escape in xml documents?
Comments
Post a Comment