0

I have a user page which has a textbox & a button. Now there is an AppSetting section in web.config file in which I am storing a key value. From the aspx page, I want to update the value for this key to whatever value we enter in the textbox.

<appSettings>
    <add key="myStoreID" value="0000"/>
</appSettings>
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
SUN
  • 973
  • 14
  • 38
  • You want this value to be changed while application is running? And it will be changed more than once by different users? – Chetan Feb 11 '18 at 12:31
  • This has been answered several times: https://stackoverflow.com/questions/11149556/app-config-change-value – IrishChieftain Feb 11 '18 at 12:34
  • @ChetanRanpariya I want Key value will be changed once by only one user this will be admin user who will input value & whatever value he puts it will be change in web.config file – SUN Feb 11 '18 at 12:49
  • Did you try to follow the answers suggested in other comments? – Chetan Feb 11 '18 at 13:05

0 Answers0