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

Adding a Show Results button to the HTML

Open up a project and, inside the <html>, put in a single button that says Show Results. For this, go to the Toolbox and grab a Button control. Drag and drop it below the line beginning with <form id=.... You can delete the <div> lines, as you don't need them. Be sure to insert a <br> tag at the end of the Button line.

<asp:Button ID="Button1" runat="server" Text="Show Results" /><br />

Next, we will display some results to the user. To do this, go to the Design view, and double-click on the Show Results button. This takes us into Default.aspx.cs. Delete the Page_Load block. The relevant portion of the starting code for this project should look like Figure 8.3.1:

Figure 8.3.1: The starting code section for this project
主站蜘蛛池模板: 清镇市| 衡东县| 新竹市| 铜山县| 漾濞| 竹溪县| 宜兰县| 辽阳市| 南乐县| 元谋县| 佳木斯市| 康马县| 平泉县| 泊头市| 牡丹江市| 兰考县| 临桂县| 永宁县| 乡宁县| 双城市| 高要市| 梁河县| 伊吾县| 措勤县| 合山市| 神农架林区| 仲巴县| 白朗县| 饶河县| 房产| 玛多县| 青海省| 达尔| 西安市| 惠来县| 扬中市| 永吉县| 西乌| 厦门市| 肇庆市| 富蕴县|