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

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.

主站蜘蛛池模板: 柳江县| 凯里市| 马鞍山市| 贵港市| 定襄县| 内江市| 满城县| 陈巴尔虎旗| 蓬安县| 留坝县| 铁岭市| 九龙县| 府谷县| 邢台市| 余庆县| 绿春县| 县级市| 西安市| 阿瓦提县| 霍州市| 云林县| 汾西县| 抚宁县| 贵南县| 黎平县| 嘉禾县| 托克托县| 黄大仙区| 西华县| 广南县| 拜泉县| 康乐县| 彭州市| 讷河市| 茂名市| 潍坊市| 曲沃县| 垦利县| 库尔勒市| 崇仁县| 罗平县|