In the web.config file add a key-value pair as follows:
<configuration>
<appSettings>
<add key='PageSize' value='10'>
</add>
</appSettings>
</configuration>
Then you can access the settings as follows in code:
VB.NET
Response.Write (ConfigurationSettings.AppSettings('PageSize'))
C#
Response.Write (ConfigurationSettings.AppSettings['PageSize'] );
Share with