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

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
主站蜘蛛池模板: 越西县| 霍州市| 若羌县| 玉山县| 库尔勒市| 托里县| 盐亭县| 分宜县| 彰化市| 灌南县| 隆德县| 漯河市| 克拉玛依市| 武定县| 临沂市| 武川县| 渝北区| 金塔县| 霍山县| 阿坝| 历史| 正镶白旗| 普宁市| 安宁市| 孟连| 鸡西市| 祁阳县| 拉萨市| 盐城市| 瓦房店市| 阳谷县| 阿拉善盟| 叶城县| 神木县| 蚌埠市| 万年县| 台南市| 盘锦市| 金沙县| 泾阳县| 辰溪县|