13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

358<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>9. Right-click the RegClients table and select Show Table Data. The first time takesa little while. You will see the five fields you created. Click in the first field andpress TAB to move to the LastName field. Begin entering records in this secondfield because the first field automatically enters values. Add about five records tohave something to work with. Figure 14-4 shows an example. (Whenever you makechanges in a record, the ReqID changes, so some of the ReqID values are out ofsequence in Figure 14-4.)10. In the Solution Explorer right-click the site (C:\..ShowLinq\), select Add <strong>ASP</strong>.<strong>NET</strong>Folder, and select App_Code. You will now see a new App_Code folder in the SolutionExplorer.11. Right-click the App_Code folder and select Add New Item. Select LINQ To SQLClasses, and in the Name window change the default name to RegClients.dbml andclick Add. Figure 14-5 shows the correct settings.Figure 14-4 Sample records

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!