How can I change a key’s value in web.config which is defined between appSettings tags at code behind in asp.net
Thanks..
Regards…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As of .Net 2.0 there is an API for modifying the web config at runtime.
Note however that any changes made to the web config will cause the web application to restart, so you want to use this as infrequently as possible.