- 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
推薦閱讀
- Interactive Data Visualization with Python
- Access 數(shù)據(jù)庫(kù)應(yīng)用教程
- Learning Data Mining with Python
- Python高級(jí)機(jī)器學(xué)習(xí)
- 老“碼”識(shí)途
- Learning Network Forensics
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲(chóng)案例實(shí)戰(zhàn)全流程詳解(高級(jí)進(jìn)階篇)
- Python數(shù)據(jù)結(jié)構(gòu)與算法(視頻教學(xué)版)
- Learning FuelPHP for Effective PHP Development
- SQL基礎(chǔ)教程(第2版)
- 編程與類型系統(tǒng)
- Java Web開(kāi)發(fā)詳解
- C#開(kāi)發(fā)案例精粹
- Android應(yīng)用開(kāi)發(fā)深入學(xué)習(xí)實(shí)錄
- QGIS 2 Cookbook