Data Access has been discontinued. Please refer to this page for more information.

Creating a New Web Application

In this tutorial, you will create a new ASP.NET Web Application that you can use as a starting point for your application.

  1. Start Visual Studio, on the File menu select New, and then select Project.
  2. In the New Project dialog box, select Visual Basic or Visual C# as the programming language.
  3. In the Templates pane, select ASP.NET Empty Web Application, and name the project SofiaCarRentalWebApp.

  4. Click OK to create the solution and the project.

  5. Add a Global Application Class file (Global.asax) to the project.
  6. Add a new web form called Default to the project.
  7. Integrate the Telerik.DataAccess.Core NuGet package with the SofiaCarRentalWebApp project.
  8. Following the steps in the Creating The SofiaCarRental Model tutorial, create the SofiaCarRental.Model project, which holds the fluent model.
  9. In the SofiaCarRentalWebApp project, add a reference to the SofiaCarRental.Model project.
  10. Copy the SofiaCarRentalConnection connection string from the App.config file of the SofiaCarRental.Model project to the Web.config file of the SofiaCarRentalWebApp project.

       <add name="SofiaCarRentalConnection" 
            connectionString="data source=.\sqlexpress;
                              initial catalog=SofiaCarRental_v2.2;
                              integrated security=True" 
            providerName="System.Data.SqlClient" />
  11. Select the Telerik.OpenAccess.dll reference in the SofiaCarRentalWebApp and press F4 to open the Properties pane. Set the Copy Local property to True.

  12. Build the Solution.

In this task, you created a new ASP.NET Web Application and the SofiaCarRental fluent model. Next, you will start implementing the user interface.

See Also