Let's begin with a simple HTML page, as shown here in Figure 3.2.1. Then, open up a C# page, which looks like Figure 3.2.2; some people call this the code-behind page. That makes sense, right? It's the C# code behind the HTML. Here, keep in mind that all we will do is to demonstrate the operation of a single concept or a couple of related concepts:
Figure 3.2.1: Our starting point for this chapter
Figure 3.2.2: The starting "behind" page for this chapter
Now insert the following line and comment:
int x = 5; //7. Variable is needed so we have something whose values can grow
The only reason for having this variable present is that it is needed so that you have something whose values can grow.
The first way of growing a value is simply to type x++. Insert the following line and comment:
x++; //8. x++ has the result of making the value...