I want to display a message in my homepage (default.aspx), which is different for each “installation” of my web app. I would like to avoid making a call to the database to show this message.. so I thought of using web.config to store something like this
<add key="WelcomeString" value="lorem ipsus <b>doloret sit amen</b>" />
But I’ve noticed I can’t use html markup in the web.config …
Is there a better approach, or is there a way to insert html markup into web.config?
Thank you again stack overflow guru’s… i’m learning from you a lot of things !
You need to XML encode it, to store it in the XML as a valid attribute value. eg: