Uday Gaikwad

Uday Gaikwad

  • NA
  • 680
  • 196.2k

updating web.config by programmatically in application start up event of global.asax, is it right way to update the config file.? What impact it does on website.?

Jul 8 2010 7:22 AM

protected void Application_Start(object sender, EventArgs e)
{
//In this event i m updating the web.config file...
XmlDocument doc = new XmlDocument();
doc.load("..../web.config");
//Logic to update the web.config file.
}
 

Answers (2)