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

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. To do this, go to 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 line with the button:

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

I'll do a hodgepodge of things just to show you different concepts.

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. Your initial code screen for this project should look like Figure 6.1.1:

Figure 6.1.1: The initial Default.aspx.cs code for this project
主站蜘蛛池模板: 达孜县| 沙坪坝区| 阜平县| 连云港市| 凤翔县| 平阴县| 合川市| 灵川县| 周至县| 东乌珠穆沁旗| 安乡县| 通渭县| 墨脱县| 临朐县| 康定县| 彰化县| 含山县| 阜新市| 上杭县| 郑州市| 招远市| 华阴市| 班戈县| 安塞县| 大英县| 浏阳市| 光泽县| 肃南| 涞源县| 奇台县| 黄龙县| 长沙县| 金门县| 大庆市| 堆龙德庆县| 通渭县| 深圳市| 怀化市| 德安县| 泽库县| 蕉岭县|