In this section you will continue the sample application by adding a few classes to the project.
To add classes to the sample application:
On the Solution Explorer window (View > Solution Explorer) right-click on the file entertask.aspx and choose View code.
Inside the namespace classesandmembers, before the class WebForm1, type the code in Figure 2.47 .
Figure 2.47 ToDoItem and ToDoList are two custom classes in the sample application.
namespace classesandmembers { //add the highlighted class //definitions class ToDoItem { } class ToDoList { } public class WebForm1 : System.Web.UI.Page { //the code continues here
Tip
In the later sections you will add members to the ToDoItem and ToDoList classes.