C# ASP.NET ConfigurationManager ConnectionString Source Code Example

C# ASP.NET ConfigurationManager ConnectionString Source Code Example Purpose: – Illustrates using Configuration Manager to retrieve connection string from web.config file in C# ASP.NET. The configuration manager can be used to do many things with regard to configuration, but this example just illustrates retrieving the connection string. Here are other methods that are available in the Configuration Manager class: GetSection GetWebAppSection RefreshSection OpenMachineConfiguration OpenMappedMachineConfiguration OpenExeConfiguration OpenMappedExeConfiguration OpenWebConfiguration OpenMappedWebConfiguration Prerequistes: Install... [Read More...]

VB.NET ASP.NET ConfigurationManager ConnectionString Source Code Example

VB.NET ASP.NET ConfigurationManager ConnectionString Source Code Example Purpose: – Illustrates using Configuration Manager to retrieve connection string from web.config file for VB.NET ASP.NET. The configuration manager can be used to do many things with regard to configuration, but this example just illustrates retrieving the connection string. Here are other methods that are available in the Configuration Manager class: GetSection GetWebAppSection RefreshSection OpenMachineConfiguration OpenMappedMachineConfiguration OpenExeConfiguration OpenMappedExeConfiguration OpenWebConfiguration OpenMappedWebConfiguration Prerequistes: Install... [Read More...]