- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 120字
- 2021-07-02 15:29:23
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
推薦閱讀
- Apache Spark Graph Processing
- Practical Windows Forensics
- R的極客理想:工具篇
- Learning Network Forensics
- SQL Server 2016數(shù)據(jù)庫(kù)應(yīng)用與開發(fā)習(xí)題解答與上機(jī)指導(dǎo)
- Linux:Embedded Development
- 零基礎(chǔ)趣學(xué)C語(yǔ)言
- Android系統(tǒng)原理及開發(fā)要點(diǎn)詳解
- Python語(yǔ)言科研繪圖與學(xué)術(shù)圖表繪制從入門到精通
- Java高并發(fā)編程詳解:深入理解并發(fā)核心庫(kù)
- JavaScript編程精解(原書第2版)
- 深入理解Kafka:核心設(shè)計(jì)與實(shí)踐原理
- 現(xiàn)代JavaScript編程:經(jīng)典范例與實(shí)踐技巧
- Building Microservices with .NET Core 2.0(Second Edition)
- Qt編程快速入門