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

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
主站蜘蛛池模板: 五华县| 罗城| 绥德县| 兰坪| 渝北区| 鄂尔多斯市| 杭锦后旗| 香格里拉县| 高州市| 秦皇岛市| 电白县| 托克逊县| 宝丰县| 凭祥市| 喜德县| 如东县| 都兰县| 乌兰察布市| 天气| 灵石县| 云浮市| 平江县| 营山县| 乃东县| 峨眉山市| 德格县| 紫阳县| 萨迦县| 鹿泉市| 阜城县| 大城县| 红桥区| 星座| 泾源县| 泸水县| 团风县| 泾源县| 平南县| 葫芦岛市| 汽车| 东乡|