Adding a Show Values button to the HTML

Bring up a project, and below the line beginning with <form id=... in the <html>, we will place a button. Change the text on the button to something different, for example, Show Values.

Now switch to the Design view, and double-click on the Show Values button. This takes us into Default.aspx.cs. Delete the Page_Load block. We don't need it. The relevant portion of the starting code for this project should look like Figure 9.4.1:

Figure 9.4.1: The starting code section for this project

We'll work with a little bit of code in this chapter, but it's sequential from top to bottom.