Home > Store

Sams Teach Yourself ASP.NET in 21 Days

Register your product to gain access to bonus material or receive a coupon.

Sams Teach Yourself ASP.NET in 21 Days

Premium Website

  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2001
  • Edition: 1st
  • Premium Website
  • ISBN-10: 0-672-32168-8
  • ISBN-13: 978-0-672-32168-9

Sams Teach Yourself ASP.NET in 21 Days will strive to introduce readers to ASP.NET through individual lessons contained in chapters. These lessons will begin with a thorough overview of the technology and framework involved, and gradually expand to more difficult lessons requiring deeper engineering skills and knowledge. Although each chapter will be self-contained, each subsequent chapter will build upon previous lessons to ensure that each topic is not only taught, but also used.

The book will introduce the ASP.NET Framework, Visual Basic .NET, and C#, the new COM framework. The book will cover applications of these technologies.

Sams Teach Yourself ASP.NET in 21 Days is the perfect book to introduce beginner and intermediate readers to the new technologies and frameworks presented by ASP.NET. By guiding readers through short but increasingly complex lessons, this book will give readers a strong foundation in ASP.NET, and the knowledge to develop their own creative solutions. Readers will delve into the new framework, the C# and Visual Basic programming languages, and techniques to approach difficult problems.



Source code from the book - 181 kb -- code.zip
Sample databases - 102 kb -- databases.zip

Sample Content

Online Sample Chapters

Validating ASP.NET Pages

Validating ASP.NET Pages

Table of Contents

Week 1 At a Glance.

Day 1—Getting Started with ASP.NET.

The Way the Web Works. The .NET Framework. Setting Up and Installing ASP.NET. Creating ASP.NET Pages. Elements of an ASP.NET Page. Comparison of ASP and ASP.NET.

Day 2—Building ASP.NET Pages.

A Simple ASP.NET Application. Writing ASP.NET and HTML Code. The Impact of the Application. Common Language Runtime and ASP.NET. ASP.NET Programming Languages. Another Look at the Code. That's Not ASP!

Day 3—Using Visual Basic.NET.

Introduction to Visual Basic.NET. Variables. Arrays. Operators. Conditional Logic. Looping Logic. Branching Logic. Classes. Useful VB.NET Functions. For Future VB.NET Gurus: Where to. That's Not ASP!

Day 4—Using ASP.NET Objects with C# and VB.NET.

Introduction to C# Syntax Examples. A Recap of Objects. ASP.NET Objects. Resources for Future C# Gurus. That's Not ASP!

Day 5—Beginning Web Forms.

Introduction to Forms. Introduction to Web Forms. Web Forms Programming Model. HTML Server Controls. Web Server Controls.

Day 6—Learning More About Web Forms.

The Extensibility of Web Forms. User Controls. Custom Controls. Creating Controls at Runtime.

Day —Validating ASP.NET Pages.

Validation Scenarios. ASP.NET Validation. Using Validation Controls. Customizing Validation.

Week 1 In Review.

Bonus Project 1.

A Banking Application. Summary.

Week 2 At a Glance.

Day 8—Beginning to Build Databases.

What Are Databases? Creating Databases. The Structured Query Language (SQL). Accessing Data with ASP.NET.

Day 9—Using Databases with ASP.NET.

Introduction to Accessing Data from ASP.NET. The DataSet. Data Binding. Data Binding Controls.

Day 10—Communicating with ADO.NET.

An Introduction to ADO.NET. The DataSet Revisited. Database. Using ADO.NET with ASP.NET.

Day 11—Using XML in ASP.NET.

An Introduction to XML. Accessing XML with ASP.NET. The XML Document Object Model. XML and the DataSet.

Day 12—Employing Advanced Data Techniques.

Advanced Database Techniques. Advanced XML Techniques.

Day 13—Reading and Writing Files on the Web Server.

Using Files with ASP.NET. Including External Files. Accessing Files. Isolated Storage.

Day 14—Using ASP.NET's Improved Caching Capabilities.

What Is Caching? How ASP.NET Uses Caching. How to Use Caching. Using Caching Effectively.

Week 2 In Review.

Bonus Project 2. Summary.

Week 3 At a Glance.

Day 15—Using Business Objects.

Introduction to Components. Creating Business Objects. Developing. Business Objects. A Working Example. Working with Non .NET Components.

Day 16—Creating Web Services.

The Way the Web Works-Revisited. Introduction to Web Services. Building a Web Service. Creating a Web Service from an Existing Business Object. Returning Data from Services.

Day 17—Consuming and Securing Web Services.

Consuming Web Services. Consuming a Web Service Through an ASP.NET Page. Web Service Consumption Recommendations. Securing Web Services.

Day 18—Configurating and Deploying ASP.NET Applications.

Introduction to ASP.NET Applications. global.asax. Configuring. Deploying Your Application.

Day 19—Separating Code from Content.

The Drive for Separation. Code-Behind Forms. Resource Files and Localization.

Day 20—Debugging ASP.NET Pages.

Introduction to Debugging. Try and Catch. Tracing. The CLR Debugger. Debugging Recommendations.

Day 21—Securing Your ASP.NET Applications.

Security Basics. Authentication. Authorization. Impersonation.

Week 3 In Review.

Bonus Project 3.

Adding the Business Objects. The Web Service. Summary.

Bonus Days.

Day 22—Building a Complete Application.

The Scenario: BananaMobiles. Designing the Application. Building the BananaMobile Site. Where to Go from Here.

Day 23—Creating Mobile Web Pages.

What Are Mobile Web Forms? Installing the Mobile Web SDK. Getting Started with Mobile Web Forms. Developing Mobile Pages.

Appendix A. Answers to Quiz Questions.

Appendix B. Common ASP.NET Mistakes.

ASP.NET Conundrums. Changes from Classic ASP.

Appendix C. ASP.NET Controls: Properties and Methods.

HTML Server Controls. Web Server Controls. Validation Server Controls.

Appendix D. ADO.NET Controls: Properties and Methods.

The DataSet and Related Objects. The Managed Providers.



Updates & Corrections

Sam's Teach Yourself ASP

Sam's Teach Yourself ASP.NET in 21 Days: Errata





Listing 9.7: The included source file, listing0907.aspx is incorrect. The source code in the book is the correct version.


Listing 11.10: Lines 38 and 39 are extraneous. The source file does not include these lines.


Listing 11.11: The catch block at line 24 assigns a value to a string variable that doesn’t get used anywhere. Should insert a new line after 24, before 25:


output.Text = strOutput


Listing 11.12: Lines 36-40 should read:


strOutput += "    " & _

   "ColumnName = """ & xmldoc.DataSet. _

   Tables(i).Columns(j).ColumnName & """, " & _

   type = " & xmldoc.DataSet.Tables(i). & _

   Columns(j).DataType.ToString() & "<br>"

Unlimited one-month access with your purchase
Free Safari Membership