Introduction:
Web.config acts as a central location for storing the information to be accessed by web pages. This information could be a Connection String stored at a centralized location so that it can be accessed in a data-driven page. If the connection string changes its just a matter of changing it at one place.
In classic ASP such global information was typically stored as an application variable.
In the sample we’ll read the information from web.config using ASP.NET and ASP as there could be a possibility of project having ASP and ASP.NET pages.
The below video demonstrates how to configure a web control globally in web.config.
Hope this helps,
Happy coding.
cool
nice post. thanks.