Before we can create any ASP.NET controls to bind data to, we need to have an ASP.NET web application to hold them. Let's create a web application project to use in the rest of our examples.
Right-click on the Ordering solution, and click Add | New Project.
Select ASP.NET Web Application, and name it Ordering.Web, as shown in the following screenshot:
Note
The primary advantage of an ASP. NET Web Application over a traditional website project is that the code is precompiled, so you don't have to publish your source code to your website. Additionally, IIS is not needed to run the website project from inside Visual Studio for debugging, so you don't need to go through setting up a virtual directory and so on, thus making the initial setup simpler.
Right-click on the Ordering.Web project and select Set as StartUp Project, as shown in the following screenshot:
Right-click on the Ordering.Web project and select Add Reference, as shown in the following screenshot...