Build Your Own ASP.NET 4 Website Using C# & VB
Curious to see what we’ve got in store for you?
Good, because there’s plenty of meaty technique to get your teeth into along with lots of tips and tricks. Have a look through the table of contents to see what’s covered.
Table of Contents
Foreword
Preface
- Who Should Read This Book
- What's in This Book
- Where to Find Help
- The SitePoint Forums
- The Book's Website
- The SitePoint Newsletters
- The SitePoint Podcast
- Your Feedback
- Acknowledgments
- Conventions Used in This Book
- Code Samples
- Tips, Notes, and Warnings
-
1. Introducing ASP.NET and the .NET Platform
- What is ASP.NET?
- Installing the Required Software
- Installing Visual Web Developer 2010 Express Edition
- Installing SQL Server Management Studio Express
- Writing Your First ASP.NET Page
- Getting Help
- Summary
-
2. ASP.NET Basics
- ASP.NET Page Structure
- Directives
- Code Declaration Blocks
- Code Render Blocks
- ASP.NET Server Controls
- Server-side Comments
- Literal Text and HTML Tags
- View State
- Working with Directives
- ASP.NET Languages
- Visual Basic
- C#
- Summary
- ASP.NET Page Structure
3. VB and C# Programming Basics
- Programming Basics
- Control Events and Subroutines
- Page Events
- Variables and Variable Declaration
- Arrays
- Functions
- Operators
- Conditional Logic
- Loops
- Object Oriented Programming Concepts
- Objects and Classes
- Properties
- Methods
- Classes
- Constructors
- Scope
- Events
- Understanding Inheritance
- Objects in .NET
- Namespaces
- Using Code-behind Files
- Summary
- Programming Basics
-
4. Constructing ASP.NET Web Pages
- Web Forms
- HTML Server Controls
- Using the HTML Server Controls
- Web Server Controls
- Standard Web Server Controls
- List Controls
- Advanced Controls
- Web User Controls
- Creating a Web User Control
- Master Pages
- Using Cascading Style Sheets (CSS)
- Types of Styles and Style Sheets
- Summary
5. Building Web Applications
- Introducing the Dorknozzle Project
- Using Visual Web Developer
- Meeting the Features
- Executing Your Project
- Core Web Application Features
Web.configGlobal.asax- Using Application State
- Working with User Sessions
- Using the
CacheObject - Using Cookies
- Starting the Dorknozzle Project
- Preparing the Sitemap
- Using Themes, Skins, and Styles
- Building the Master Page
- Using the Master Page
- Extending Dorknozzle
- Debugging and Error Handling
- Debugging with Visual Web Developer
- Other Kinds of Errors
- Custom Errors
- Handling Exceptions Locally
- Summary
6. Using the Validation Controls
- Client-side Validation and Server-side Validation
- Introducing the ASP.NET Validation Controls
- Enforcing Validation on the Server
- Using Validation Controls
RequiredFieldValidatorCompareValidatorRangeValidatorValidationSummaryRegularExpressionValidatorCustomValidator
- Validation Groups
- Updating Dorknozzle
- Summary
- 7. Database Design and Development
- What Is a Database?
- Creating Your First Database
- Creating a New Database Using Visual Web Developer
- Creating a New Database Using SQL Server Management Studio
- Creating Database Tables
- Data Types
- Column Properties
- Primary Keys
- Creating the Employees Table
- Creating the Remaining Tables
- Populating the Data Tables
- Relational Database Design Concepts
- Foreign Keys
- Using Database Diagrams
- Implementing Relationships in the Dorknozzle Database
- Diagrams and Table Relationships
- Summary
8. Speaking SQL
- Reading Data from a Single Table
- Using the
SELECTStatement - Selecting Certain Fields
- Selecting Unique Data with
DISTINCT - Row Filtering with
WHERE - Selecting Ranges of Values with
BETWEEN - Matching Patterns with
LIKE - Using the
INOperator - Sorting Results Using
ORDER BY - Limiting the Number of Results with
TOP
- Using the
- Reading Data from Multiple Tables
- Subqueries
- Table Joins
- Expressions and Operators
- Transact-SQL (T-SQL) Functions
- Arithmetic Functions
- String Functions
- Date and Time Functions
- Working with Groups of Values
- The
COUNTFunction - Grouping Records Using
GROUP BY - Filtering Groups Using
HAVING - The
SUM,AVG,MIN, andMAXFunctions
- The
- Updating Existing Data
- The
INSERTStatement - The
UPDATEStatement - The
DELETEStatement
- The
- Stored Procedures
- Summary
- Reading Data from a Single Table
-
9. ADO.NET
- Introducing ADO.NET
- Importing the
SqlClientNamespace - Defining the Database Connection
- Preparing the Command
- Executing the Command
- Setting Up Database Authentication
- Reading the Data
- Using Parameters with Queries
- Bulletproofing Data Access Code
- Using the Repeater Control
- Importing the
- Creating the Dorknozzle Employee Directory
- More Data Binding
- Inserting Records
- Updating Records
- Deleting Records
- Using Stored Procedures
- Summary
- Introducing ADO.NET
10. Displaying Content Using Data Lists
DataListBasics- Handling
DataListEvents - Editing
DataListItems and Using Templates DataListand Visual Web Developer- Styling the
DataList - Summary
11. Managing Content Using
GridViewandDetailsView- Using the
GridViewControl- Customizing the
GridViewColumns - Styling the
GridViewwith Templates, Skins, and CSS - Selecting Grid Records
- Customizing the
- Using the
DetailsViewControl- Styling the
DetailsView
- Styling the
GridViewandDetailsViewEvents- Entering Edit Mode
- Using Templates
- Updating
DetailsViewRecords
- Summary
- Using the
12. Advanced Data Access
- Using Data Source Controls
- Binding the
GridViewto aSqlDataSource - Binding the
DetailsViewto aSqlDataSource - Displaying Lists in
DetailsView - More on
SqlDataSource
- Binding the
- Working with Data Sets and Data Tables
- What Is a Data Set Made From?
- Binding
DataSets to Controls - Implementing Paging
- Storing Data Sets in View State
- Implementing Sorting
- Filtering Data
- Updating a Database from a Modified
DataSet - Summary
- Using Data Source Controls
13. Security and User Authentication
- Basic Security Guidelines
- Securing ASP.NET Applications
- Working with Forms Authentication
- ASP.NET Memberships and Roles
- Creating the Membership Data Structures
- Using Your Database to Store Membership Data
- Using the ASP.NET Web Site Configuration Tool
- Creating Users and Roles
- Changing Password Strength Requirements
- Securing Your Web Application
- Using the ASP.NET Login Controls
- Summary
14. Working with Files and Email
- Writing and Reading Text Files
- Setting Up Permissions
- Writing Content to a Text File
- Reading Content from a Text File
- Accessing Directories and Directory
Information
- Working with Directory and File Paths
- Uploading Files
- Sending Email with ASP.NET
- Sending a Test Email
- Creating the Company Newsletters Page
- Summary
- Writing and Reading Text Files
15. Introduction to LINQ
- Extension Methods
- LINQ to SQL
- Updating Data
- Relationships
- Directly Executing Queries from the
DataContext - Stored Procedures with LINQ-to-SQL
- Using ASP.NET and LINQ-to-SQL
- Extension Methods
16. Introduction to MVC
- Summary
-
17. ASP.NET AJAX
- What is Ajax?
- ASP.NET AJAX
- Using the
UpdatePanelControl- Managing the
ScriptManagerControl
- Managing the
- Using Triggers to Update an
UpdatePanel - The ASP.NET AJAX Control Toolkit
- The
ValidatorCalloutExtenderControl Extender - Getting Started with Animation
- The
- jQuery
- Summary
A. Web Control Reference
- The
WebControlClass- Properties
- Methods
- Standard Web Controls
AdRotatorBulletedListButtonCalendarCheckBoxCheckBoxList- DropDownList
FileUploadHiddenFieldHyperLinkImageImageButtonImageMapLabelLinkButtonListBoxLiteralMultiViewPanelPlaceHolderRadioButtonRadioButtonListTextBoxWizardXml
- Validation Controls
CompareValidatorCustomValidatorRangeValidatorRegularExpressionValidatorRequiredFieldValidatorValidationSummary
- Navigation Web Controls
SiteMapPathMenuTreeView
- Ajax Web Extensions
ScriptManagerTimerUpdatePanelUpdateProgress
- The
-
B. Deploying ASP.NET Websites
- ASP.NET Hosting Considerations
- Using Visual Web Developer Express to Deploy ASP.NET Websites
- Deploying MVC Sites and Web Applications
- ASP.NET Deployment "Gotchas"
- Using the SQL Server Hosting Toolkit
- Dealing with SQL Security
Index
More Information
This book is for the inquisitive and industrious willing to put in the time and wanting to benefit from the experience. If you want a solid understanding of ASP.NET, then I recommend this book
T. Michael Testi
blogcritics
27 May 2009 (3rd edition)
I am impressed by the quality of the content and the book is surely a ready reckoner for all developers who wish to master the core features of ASP.NET 3.5.
Anand Narayanaswamy
ASPAlliance
13 April 2009 (3rd edition)
It is an easy and engaging read. Nearly all of my questions that arose as I worked through the book were anticipated and addressed at the perfect time.
Aaron P. Stengel
Amazon Customer Review
May 23, 2010 (3rd edition)
Customer Reviews
Live, unmoderated reviews from our customers, typos and all.
Excellent book, with many working examples!
Erik van Egeraat, USA 
21 May 2012
It is an excellent book for aspiring Web designers. The book is easy to understand with examples to show how the Web page is supposed to look. It is a great reference book for Web designers.
Dawn Seitz, USA 
The book is good and gets you started. The download of the book in different formats e.g. PDF, ePubs is very helpfull.
Rainer Warth, USA 