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

Adding a summarize button to the HTML

Bring up a project. In the basic HTML, delete the <div> lines, as you won't need them. Now, let's add a button. The only thing the button will do is to summarize some information for us.

Go to Toolbox and grab a Button control. Drag and drop it below the line beginning with <form id=..., and change the text on the button to say Summarize. Now, close this with a <br> tag and keep the Label control as usual.

Now, go to Default.aspx, and enter the Design view. You'll see one button for the interface, which says Summarize and looks like Figure 4.4.1:

Figure 4.4.1: The simple interface for this project

Now, double-click on the Summarize button. This takes us into Default.aspx.cs. Delete the Page_Load block. Your initial code screen for this project should look like Figure 4.4.2:

Figure 4.4.2: The initial Default.aspx.cs code for this project
主站蜘蛛池模板: 泌阳县| 峡江县| 观塘区| 陵川县| 南川市| 萨嘎县| 黎平县| 合阳县| 陇川县| 共和县| 新丰县| 施甸县| 镇远县| 岱山县| 台中县| 亚东县| 阿勒泰市| 蕲春县| 灵石县| 江西省| 保康县| 江西省| 大埔区| 酒泉市| 齐齐哈尔市| 伽师县| 通山县| 栾川县| 图木舒克市| 长治县| 临西县| 平山县| 特克斯县| 游戏| 青海省| 光山县| 晋中市| 兰溪市| 刚察县| 赣榆县| 江陵县|