I have a web.config file open in a textbox and would like to manipulate it. For example, allowing the user to change the DBConn string or something. At the stage of trying to change this, the config text may, or may not exist as a physical file. Is it possible to use the WebConfigurationManager, or similar in memory; something like this:
string myWebConfig = LoadWebConfigHere();
var config = WebConfigurationManager.OpenWebConfiguration(myWebConfig);
OpenWebConfiguration only accepts a path. I don't really want to save it and reload it to get this functionality.