Improving your first program
To continue the development of your first C# program, do the following:
- If you wish, you can place something like
Our First C# Page
between the<title>
tags. - Make sure that the
Solution Explorer
window is displayed. If it isn't shown, go toView
|Solution Explorer
. (Ctrl+Alt+L is the key combination, if you prefer using those.)
- In
Solution Explorer
, expand the node that saysDefault.aspx
.

Figure 2.2.1: Default.aspx.cs in Solution Explorer
- Open
Default.aspx.cs
, as shown in the following screenshot. This is where you place your C# code:

Figure 2.4.2: Default.aspx.cs is where you place C# code
Notice that by default, at this stage, the code gets grayed out, as shown in the following screenshot. This means that you can remove it. You can just delete it—it's not necessary for our purposes:

Figure 2.2.3: Select and delete the grayed-out code