ASP.NET config data -


i'm working asp.net , c#. don't know store configuration setting web app.

every time page loads app reads master page. on master page, everytime need following data:

  • meta tags site users have able change data in cms, think best store in database. every time user request page web app going query database.

  • some configuration master page using (we use several several templates), , other config. think can store in web.config since users can't modify these values.

in past used xml file read meta tags, ythink better use database.

also, cost lot web app access web.config in every page? mean, "configurationmanager.appsettings["variable"];"

thanks lot !!!

configurationmanager.appsettings["variable"] value remained , picked cache, until web.config changes.

you can store application setting in xml file in app_data folder, , mentioned in web.config like:

<appsettings configsource="app_data\config\siteconfig.xml" /> 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -