官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 乃东县| 西华县| 永昌县| 祁连县| 青河县| 山西省| 柞水县| 衡山县| 广平县| 张家界市| 枞阳县| 精河县| 枣庄市| 田东县| 榆社县| 垫江县| 金坛市| 黄冈市| 瓦房店市| 芦山县| 敦化市| 来宾市| 海原县| 昆山市| 新野县| 江口县| 定日县| 伊宁市| 安仁县| 德江县| 九龙坡区| 惠安县| 兰考县| 寻乌县| 丹东市| 郓城县| 潍坊市| 临安市| 穆棱市| 交城县| 纳雍县|