AppSetting Section in asp .net
-
- Posts: 295
- Joined: Sat Sep 20, 2014 5:26 pm
- Contact:
AppSetting Section in asp .net
What is AppSetting Section in “Web.Config” file?
Re: AppSetting Section in asp .net
Web.config file defines configuration for a web project. Using “AppSetting” section, we can define user-defined values. Example below defined is “Connection String” section, which will be used through out the project for database connection.
<Configuration>
<appSettings>
<add key="ConnectionString" value="server=xyz;pwd=www;database=testing" />
</appSettings>
<Configuration>
<appSettings>
<add key="ConnectionString" value="server=xyz;pwd=www;database=testing" />
</appSettings>
Return to “Visual Basic .NET and ASP.NET”
Who is online
Users browsing this forum: No registered users and 1 guest