For review purposes, the complete version of the HTML file for this chapter, is shown in the following code block:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Our First Page</title> </head> <body> <form id="form1" runat="server"> <asp:Button ID="Button1" runat="server" Text="Show Records" OnClick="Button1_Click" /> <div style="text-align:center;"> <asp:Label ID="sampLabel" runat="server"></asp:Label> </div> </form> </body> </html>
The complete version of the default.aspx.cs
file for this chapter, including comments, is shown in the following code block:
//using is a directive //System is a name space //name space is a collection of features that our needs to run using System; using System.Data.SqlClient;//needed for SQL commands and connections //public means accessible anywhere /...