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

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
主站蜘蛛池模板: 古田县| 汝南县| 莱芜市| 武安市| 天全县| 滦南县| 黔南| 台州市| 望江县| 乡城县| 泽普县| 莎车县| 额尔古纳市| 梁平县| 伊吾县| 遵化市| 喜德县| 南漳县| 峡江县| 万安县| 当阳市| 西峡县| 通江县| 兴隆县| 尖扎县| 洛南县| 沾化县| 吕梁市| 柳州市| 泰兴市| 广东省| 诏安县| 阿坝| 桂林市| 万荣县| 延长县| 仙桃市| 当雄县| 铜梁县| 盖州市| 平武县|