Here Mudassar Ahmed Khan has explained with an example, how to set and read SQL Server Connection String for SQL Server Authentication in Web.Config file in ASP.Net using C# and VB.Net.
In ASP.Net Web Applications, one has to reference the System.Configuration Assembly in order to read the SQL Server Connection String for SQL Server Authentication from the ConnectionStrings section of the Web.Config file.
↧