I can easily read my appSetting in the web.config file and then fill in all the keys and values in the asp.net form. but I need to have the initial setup for my web application, how can I write in appSetting? This is the best way or not, I have to store all the keys in the database, which is better? and how can i implement this? I need to add a key and edit the key or its value in the appSetting configuration file.
Manipulating values in the web.configThe file is not recommended, because as soon as the user tries to change the value, the entire user sessions will be terminated.
Manipulating values in the web.config
sessions will be terminated
, - Machine.Config, Web.Config, or Global.asax.
Machine.Config, Web.Config, or Global.asax
ASP.NET: appdomain
, .
?
Visual Studio, web.config, Visual Studio.
DB ?
. , , , , . , , - ., , web.config . , web.config. .
Name/Value, , . - "" , .
back-end, . , .
back-end
- , web.config, db , .
Don't worry about modifying web.config and losing sessions. In practice, servicing for several minutes when application loading is minimal is an acceptable approach (you often look at the maintenance page in stackoverflow and other known ones)