Submitted By Harish on 4/8/2014 12:00:00 AM in ASP.NET.


You define database connections in terms of a string that specifies the properties of the connection. These properties usually include the location of the database and security information for accessing the database. Different databases support different properties and therefore require different connection strings.

In this article you will get to know :

  • How to create connection string?
  • Where to add connection string in web.config file?
  • How to get or read connection string from web.config file?
Technologies Used : ASP.NET
Submitted By Harish on 1/8/2014 12:00:00 AM in ASP.NET.


It is a good practice to store the connection string for your application in a config file rather than as a hard coded string in your code. The way to do this differs between .NET 2.0 and .NET 3.5 (and above). This article covers .NET 3.5 and above.


In the Previous articles i explained how to integrate ckeditor with asp.nethow to upload image to the server or application using Ckeditor , how to change or set width of ckeditor textbox area using asp.nethow to set or change height of Ckeditor textbox area using ASP.Netintegrate custom image uploader control with ckeditor using asp.nethow to add membership tables to the existing database  and many more about Asp.Net.

Technologies Used : ASP.NET
First Previous
Next Last
    Page 1 of 1    
Follow me on twitter
About Me
Harpreet Singh
I began programming with C++ when i was 17. Then at the middle of my study .NET came. Then I began to read C# and VB.NET. By the time i learnt SQL and ASP.NET, and developed some websites such as news portals that are active now. Currently i am running my own Software company.
More Articles