how to modify the web.config file when application is running by code

Last post 09-15-2006 1:15 PM by Corny. 0 replies.

Sort Posts:

  • how to modify the web.config file when application is running by code

    09-15-2006, 1:15 PM
    • Member
      70 point Member
    • Corny
    • Member since 11-10-2005, 12:27 PM
    • Posts 14

    yes , i got some idea from msdn about OpenWebConfiguration and OpenExeConfiguration Method,and i do some test about it  , what's happed?

    when i modify something like connectionString and CustomeSection by code, it's ok when application running, even the connectionstrings is readonly( it's too many properties was readonly ),no any exception, but the value had no saved to disk. when the application was shutdown, all the value of my modified all lost.

    Why?

    anyone would tell me ? thks very much!!

Page 1 of 1 (1 items)