- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 121字
- 2021-07-02 15:29:26
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
推薦閱讀
- Mastering Concurrency Programming with Java 8
- JBoss Weld CDI for Java Platform
- C++案例趣學
- Learning SAP Analytics Cloud
- 數據結構(Java語言描述)
- Julia Cookbook
- C語言實驗指導及習題解析
- Nagios Core Administration Cookbook(Second Edition)
- RESTful Web Clients:基于超媒體的可復用客戶端
- SpringBoot從零開始學(視頻教學版)
- Python Programming for Arduino
- Python預測之美:數據分析與算法實戰(雙色)
- Java高手是怎樣煉成的:原理、方法與實踐
- MongoDB Administrator’s Guide
- Managing Windows Servers with Chef