locked
web.config file section replacements: question RRS feed

  • Question

  • User1004736368 posted

    Under Configuration properties, there is a check box when checked will allow you to put in code for changing sections in your web.config file.  Can anyone show me the code to place in this area on how to replace the following in my web.config file?  Thanks

    <compilation debug="true">

    to

    <compilation debug="false">


    and

    <add name="DbConnection" connectionString="Data Source=xxx;Initial Catalog=xxx;Persist Security Info=True;User ID=xxx;Password=xxx; Connect Timeout=90"
          providerName="System.Data.OleDb"  />

    to

    <add name="DbConnection" connectionString="Data Source=yyy;Initial Catalog=yyy;Persist Security Info=True;User ID=yyy;Password=yyy; Connect Timeout=90"
          providerName="System.Data.OleDb"  />

    Friday, August 28, 2009 10:30 AM

Answers