Home
Certification Preparation
Microsoft
Microsoft Developers Certifications
AppSettings ConnectionStrings
ijas1981
can somebody explan me about the point of using(difference and purpose)
AppSetings
ConnectionStrings (not connectionString)
thank you.
Find more posts tagged with
Comments
JDMurray
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
.
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of