locked
Add app.config in my web.config? RRS feed

  • Question

  • User30110692 posted

    The question is simple, I have a app.config in a folder and i want to include all configuration in web.config. How can i do it?

     

     

    Thursday, January 31, 2013 2:25 PM

Answers

  • User1815411410 posted

    You can put the configuration inside <appSettings> in your web.config, for example:

    <configuration>
      <appSettings>
        <add key="SQLConn__Default" value="data source=.;Persist Security Info=True;initial catalog=catalog;user id=id;password=pass"/>
      </appSettings>
      ...
    </configuration>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 5, 2013 11:53 PM