官术网_书友最值得收藏!

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
主站蜘蛛池模板: 昌吉市| 贵南县| 同心县| 安康市| 英德市| 都兰县| 出国| 临湘市| 乌鲁木齐县| 深水埗区| 乐亭县| 全南县| 合江县| 贵南县| 行唐县| 曲阳县| 垫江县| 会宁县| 长葛市| 颍上县| 虞城县| 绥中县| 南郑县| 昭觉县| 江陵县| 莆田市| 柘荣县| 文山县| 嘉定区| 仙游县| 滦南县| 高州市| 余江县| 阿荣旗| 博湖县| 柘城县| 平罗县| 渑池县| 商洛市| 浦东新区| 轮台县|