Here, we'll create a project. Start with the simple HTML markup shown in the following screenshot:
Figure 6.10.1: The simple HTML markup for our project
Here, we'll create a project. Start with the simple HTML markup shown in the following screenshot:
Now, go to the Solution Explorer, right-click on the name of the website, select Add, and then click on Class. Name the class Product and click on OK. When the Visual Studio message comes up, click on Yes.
So the relevant portion of the initial Product class code looks as shown in the following screenshot, which is sufficient for our purposes:
What's true about every product is that you have a price, a name, and so on. For our purposes, enter the following...