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

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
主站蜘蛛池模板: 嘉峪关市| 康定县| 崇信县| 阿坝县| 平定县| 建湖县| 荆州市| 永城市| 临湘市| 余干县| 菏泽市| 伊金霍洛旗| 香格里拉县| 镇坪县| 乡城县| 交城县| 色达县| 荣成市| 东乡族自治县| 深水埗区| 鹤山市| 武邑县| 河源市| 栾城县| 上蔡县| 方山县| 资溪县| 金川县| 宜兰市| 阳高县| 来凤县| 庄浪县| 安顺市| 大荔县| 唐山市| 怀来县| 淮北市| 崇明县| 获嘉县| 徐闻县| 永兴县|