Anuya
Anuya

Reputation: 8350

Tags inside value of appsettings of web.config. How?

 <appSettings>
    <add key="CodeNF" value="somevalue"/>
  </appSettings>

In the above code, i need to put value="<somevalue>".

Is it possible to do that in my web.comfig ? Thanks

Upvotes: 10

Views: 5207

Answers (1)

TGH
TGH

Reputation: 39248

You have to html encode the < and > characters

"&lt;somevalue&gt;"

Upvotes: 18

Related Questions