Category - App.Config
23 Nov 2020 23 Nov 2020 0 Comments  216 Views
Here Mudassar Ahmed Khan has explained with an example, how to create Connection String in C# and VB.Net.

This article will illustrate how to create connection string for Windows and SQL Server based authentication for Windows Forms and Console Applications in C# and VB.Net.
25 Oct 2017 25 Oct 2017 0 Comments  11260 Views
Here Mudassar Ahmed Khan has explained with an example, how to store and access Connection String in Windows Application (Windows Forms) using C# and VB.Net.

The Connection String will be stored (saved) in the App.Config file inside its ConnectionStrings section and later it will be read in code using the ConfigurationManager class in C# and VB.Net.

In Windows applications, Class Library or Console applications one has to reference the System.Configuration Assembly in order to read Connection String value from the App.Config file.
05 Jan 2015 05 Jan 2015 2 Comments  114054 Views
Here Mudassar Ahmed Khan has explained how to use Connection String from App.Config file using C# and VB.Net by reading the value of the Connection String from the ConnectionStrings section of the App.Config.

In Windows applications, Class Library or Console applications one has to reference the System.Configuration Assembly in order to read Connection String value from the App.Config file.
05 Jan 2015 05 Jan 2015 0 Comments  125687 Views
Here Mudassar Ahmed Khan has explained how to read values of AppSettings from App.Config file using C# and VB.Net.

In Windows applications one has to reference the System.Configuration Assembly in order to read AppSetting values from the App.Config file.