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

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
主站蜘蛛池模板: 确山县| 于田县| 北辰区| 康定县| 中卫市| 郑州市| 龙岩市| 岫岩| 凤山县| 大石桥市| 香河县| 丹凤县| 平江县| 阿拉尔市| 垦利县| 时尚| 沙坪坝区| 泰安市| 交口县| 潼南县| 吉隆县| 肃北| 新田县| 深圳市| 长阳| 徐水县| 长丰县| 花垣县| 武鸣县| 甘泉县| 武强县| 沁水县| 三穗县| 晴隆县| 英德市| 封丘县| 夹江县| 曲松县| 威远县| 金华市| 海林市|