- 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
推薦閱讀
- SQL Server 從入門到項目實踐(超值版)
- Android Wearable Programming
- Java Web開發學習手冊
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- GeoServer Cookbook
- Python從小白到大牛
- Building a Home Security System with Raspberry Pi
- Learning Hunk
- 深入淺出Serverless:技術原理與應用實踐
- 單片機C語言程序設計實訓100例
- 深度學習:Java語言實現
- Python深度學習原理、算法與案例
- Illustrator CS6設計與應用任務教程
- UML軟件建模
- 人人都能開發RPA機器人:UiPath從入門到實戰