I can easily read my appSetting in web.config file and then fill all keys and values in asp.net form. but I need to have initial setup for my web application how I can write in appSetting ?
Is it the best way or not I have to store all of the keys in database which is better ?
and How I can implement this ? I need to add a key and edit a key or their value in appSetting config file.
I can easily read my appSetting in web.config file and then fill all keys
Share
Manipulating values in the web.configfile is not recommend, because once a user tries to modify a value, all Usersessions will be terminated.An application domain will unload when any change occurs in the
Machine.Config, Web.Config, or Global.asax.Read ASP.NET Case Study: Lost session variables and appdomain recycles
If your keys are modifiable, then it is preferable to store it in DB.