What is AppSetting Section in “Web.Config” file

Q

What is AppSetting Section in “Web.Config” file ?

✍: Guest

A
Web.config file defines configuration for a webproject.

Using “AppSetting” section we can define user defined values. Example below defined is “ConnectionString” 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>

2007-10-24, 4849👍, 0💬