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

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.

主站蜘蛛池模板: 名山县| 彭泽县| 许昌市| 安泽县| 东莞市| 麻栗坡县| 高阳县| 庄河市| 鄂尔多斯市| 商水县| 洪雅县| 六盘水市| 临夏县| 大方县| 龙海市| 宁安市| 芷江| 红河县| 九龙县| 灵川县| 平遥县| 盐亭县| 东平县| 滦平县| 台州市| 和硕县| 大埔县| 贵溪市| 凤山市| 通城县| 禄劝| 桃源县| 岫岩| 高青县| 万全县| 伊春市| 遵义市| 丰原市| 海城市| 陆河县| 玉环县|