Options

AppSettings ConnectionStrings

ijas1981ijas1981 Member Posts: 19 ■□□□□□□□□□
can somebody explan me about the point of using(difference and purpose)

AppSetings

ConnectionStrings (not connectionString)



thank you.

Comments

  • Options
    JDMurrayJDMurray Admin Posts: 13,031 Admin
    AppSettings and ConnectionStrings are two properties of the ConfigurationManager class. They allow access to the informaiton in the AppSettings and ConnectionStrings sections of the web.config file used by a ASP.NET project. You can open the web.config file in Visual Studio and see the XML used to store the data.

    The AppSettings section is used to store any type of program configuration information that you might otherwise store in an initialization (.INI) file or the Windows registry. This information is set at design-time using the Settings tab of the project's Properties window and read/written by the program at run-time.

    The ConnectionStrings section is used to store database connection strings rather than hard-code them in the assembly. These strings are set when you connect the ASP.NET project to a database and can be read by the program at run-time.
Sign In or Register to comment.