Vijay Singh Rana
Vijay Singh Rana

Reputation: 1100

How to Add key in App Setting tag of web config with special character like '&'

I tried to add this value but it is giving me the error

<add key="RssFeedURL" value="http://www.example.com/?cat=11&feed=rss2"/>

Upvotes: 2

Views: 1354

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038890

You could encode it:

<add key="RssFeedURL" value="http://www.example.com/?cat=11&amp;feed=rss2"/>

Upvotes: 6

Related Questions