Adding a button to sort and display results
Open up a project and click on the <html> tab
. Once again, the only thing that you need to put in there is a button. For this, 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 Sort and Show
. Now, put a <br>
tag in there at the end of the line and keep the label as usual:
<asp:Button ID="Button1" runat="server" Text="Sort And Show"/><br />
Now, go to the Design
view, where you should see only the Sort and Show
button as shown in Figure 3.3.1.
Figure 3.3.1: Adding a button