title: NameValueSectionHandler - can i use this section type for writing back to the application config file?
body: <p>back to the topic of why didn't .net provide a <em>simple</em> (i don't want to implement "ConfigurationSection" "ConfigurationElement" "ConfigurationProperty" for 2 values) way to write values back into application config files...
  (and i don't want to use 'user' app config)</p>
  
  <p>i want to write to the app.config values, i tired the above method of key,value - for reading its fine but i can't write back into it (it says the collection is read only).
  even though the following method is supplied -</p>
  
  <pre><code>NameValueCollection.Set(string,string)
  </code></pre>
  
  <p>am i missing something here ?</p>
  
  <p>this is the way i am trying to do it:</p>
  
  <pre><code> NameValueCollection nvc = (NameValueCollection)ConfigurationManager.GetSection("options");
   nvc.Set("SelectTimeOut", sqlTimeoutSpinBox.Value.ToString());
  </code></pre>