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

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
主站蜘蛛池模板: 章丘市| 隆昌县| 稷山县| 通化县| 全椒县| 珠海市| 瑞昌市| 宣城市| 锡林浩特市| 荣昌县| 瑞金市| 台东县| 吉木乃县| 乐东| 六安市| 疏附县| 横峰县| 甘德县| 海伦市| 五寨县| 巨野县| 韩城市| 凤阳县| 万载县| 隆昌县| 兰州市| 连江县| 潮州市| 罗甸县| 南和县| 滨州市| 博野县| 新巴尔虎右旗| 随州市| 洞头县| 珲春市| 辽阳市| 丹棱县| 广水市| 松原市| 祁连县|