I'm trying to store a website address in the appSettings section of the web.config file. The URL has two querystring paramters at the end of the URL so I need to use the & symbol. When I hard code the URL in the code file it works if I substitute "&"
. In the config file these letters are red. I've tried both "&" and "&"
in the config and they both turn red and I can't read them from the code file. Can anyone tell me how to do this so that it works?
Thanks,
EDIT:
It looks like it's not reading anything from the appSettings. I'm using this line to retrieve the setting.
String surveyLink = ConfigurationManager.AppSettings["SatisfactionSurveyLink"];