- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 135字
- 2021-07-02 15:29:20
Adding a summarize button to the HTML
Bring up a project. In the basic HTML, delete the <div> lines, as you won't need them. Now, let's add a button. The only thing the button will do is to summarize some information for us.
Go to Toolbox and grab a Button control. Drag and drop it below the line beginning with <form id=..., and change the text on the button to say Summarize. Now, close this with a <br> tag and keep the Label control as usual.
Now, go to Default.aspx, and enter the Design view. You'll see one button for the interface, which says Summarize and looks like Figure 4.4.1:

Figure 4.4.1: The simple interface for this project
Now, double-click on the Summarize button. This takes us into Default.aspx.cs. Delete the Page_Load block. Your initial code screen for this project should look like Figure 4.4.2:

Figure 4.4.2: The initial Default.aspx.cs code for this project
推薦閱讀
- Designing Machine Learning Systems with Python
- 解構(gòu)產(chǎn)品經(jīng)理:互聯(lián)網(wǎng)產(chǎn)品策劃入門寶典
- Mobile Web Performance Optimization
- Vue.js快跑:構(gòu)建觸手可及的高性能Web應(yīng)用
- 樂學(xué)Web編程:網(wǎng)站制作不神秘
- Building a Recommendation Engine with Scala
- 青少年P(guān)ython編程入門
- 精通Python自動(dòng)化編程
- C++寶典
- Node學(xué)習(xí)指南(第2版)
- Couchbase Essentials
- Learning Nessus for Penetration Testing
- Delphi開發(fā)典型模塊大全(修訂版)
- iOS Development with Xamarin Cookbook
- Learning Redux