- 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
推薦閱讀
- 演進式架構(原書第2版)
- 大學計算機基礎(第三版)
- Python入門很簡單
- Raspberry Pi Networking Cookbook(Second Edition)
- Neo4j Essentials
- Reactive Programming With Java 9
- 數據結構(C語言)
- 程序設計基礎教程:C語言
- Learning ArcGIS for Desktop
- Fast Data Processing with Spark(Second Edition)
- SpringBoot從零開始學(視頻教學版)
- Oracle實用教程
- Python 3 Object:oriented Programming(Second Edition)
- 深入分析GCC
- 高效使用Greenplum:入門、進階與數據中臺