Connection between ASP.NET Website and SQL Sever Database

How to Connect Website with Database?

ASP.NET gives you flexibility in how you connect to databases. A simple way is to use data source controls, which allow you to encapsulate data access in a control that you can configure with connection and query information. Alternatively, you can write code to perform data access yourself using ADO.NET classes or LINQ queries.

Here Step by Step Guide to connect Database to ASP.NET website:

  1. First Create A website  

     2. Click on Solution Explorer and Click to Connect Database Icon


    3. On Add Connect Window Choose Database Server, Authentication mode and then Choose your
        Database Name

No comments:

Post a Comment