Beginning ASP. NET 2. 0 with C#

by ; ; ;
Format: Paperback
Pub. Date: 2006-05-01
Publisher(s): Wrox
List Price: $39.99

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

ASP.NET 2.0 is an amazing technology that allows you to develop web sites and applications with very little hassle, and its power and depth enable it to host even the most complex applications available. Using code examples in C#, this invaluable beginner's guide shows you how to program web applications in ASP.NET 2.0 and see dynamic results with minimal effort. Through detailed explanations and working C# code examples, this popular author team eases you into the world of ASP.NET development and gradually introduces you to all sorts of interesting ASP.NET tricks and tools. You'll quickly see how ASP.NET 2.0 is designed to ensure a significant reduction in the amount of code you have to write--and, in turn, to make your life easier. What you will learn from this book * Why Visual Web Developer is an ideal environment for building feature-rich ASP.NET 2.0 applications with C# * How to secure web sites, providing login functionality and role-based access to content * Useful techniques for safely updating data, using ASP.NET 2.0's built-in data handling capabilities * How centralized site design can be easily achieved * How to add e-commerce functionality to a site * Methods for enhancing an application's performance Who this book is for This book is for anyone new to web programming who wants to program dynamic, feature-rich web applications in ASP.NET 2.0. It will also be ideal for programmers seeking to upgrade their ASP 3 knowledge to ASP.NET, or programmers from non-Microsoft web disciplines who need to learn ASP.NET 2.0. Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.

Author Biography

Chris Hart normally works at Trinity Expert Systems Plc, based in Coventry (UK) but is currently on maternity leave. She's worked on several major .NET, SharePoint, and CMS applications. She enjoys having a job where she gets to learn and play with new technologies on a regular basis, often working on-site with customers. She's been using.NET since the pre-Alpha days, and yet still enjoys the fun of working with beta software.
Chris lives in Birmingham (UK, not Alabama) with her extremely understanding husband James and baby Nathan, and is discovering that motherhood is more challenging than developing a CMS systems for a major client. She's currently trying to work out how to make the  home network toddlerproof.
I'd like to thank James for being so understanding - this was the hardest one yet, and you were great. Thanks also to my brother Rob for your inspiring creativity - best of luck in your final year at Uni. Thanks to Lou for designing the Wrox United site, and for being such a fantastic friend. Finally, thanks to Nathan for waiting eight more days after I finished my final drafts before arriving into the world.
Chris Hart contributed Chapters 3-5 and 11 and Appendix C to this book.

John Kauffman was born in Philadelphia, the son of a chemist and a nurse. He received his degrees from The Pennsylvania State University, the Colleges of Science and Agriculture. His early research was for Hershey foods in the genetics of the chocolate tree and the molecular biology of chocolate production. Since 1993 John has focused on explaining technology in the classroom and in books.
In his spare time, John is an avid sailor and youth sailing coach. He also enjoys jazz music and drumming. In addition to technical material, he manages to read the New Yorker magazine from cover-to-cover each week.
John Kauffman contributed Chapters 1, 2, 7, and 8 and Appendix D to this book.

Dave Sussman is an independent trainer, consultant, and writer, who inhabits that strange place called beta land. It's full of various computers, multiple boot partitions, VPC images, and very occasionally, stable software. When not writing books or testing alpha and beta software, Dave can be found working with a variety of clients helping to bring ASP.NET projects into fruition. He is a Microsoft MVP, and a member of the ASP Insiders and INETA Speakers Bureau. You can find more details about Dave and his books at his official website (www.ipona.com ) or the site he shares with Alex Homer (http://daveandal.net).
Dave Sussman contributed Chapters 6, 9, 14, and 15 and Appendix E to this book.

Chris Ullman is a free4lance web developer and technical author who has spent many years stewing in ASP / ASP.NET, like a teabag left too long in the pot. Coming from a Computer Science background, he started initially as a UNIX/Linux guru, who gravitated towards MS technologies during the summer of ASP (1997). He cut his teeth on Wrox Press ASP guides, and since then, he has written on over 20 books, most notably as lead author for Wrox's bestselling Beginning ASP / ASP.NET 1.x series, and has contributed chapters to books on PHP, ColdFusion, JavaScript, Web Services, C#, XML, and other Internet-related technologies to esoteric to mention, now swallowed by up in the quicksands of the dot.com boom.
Quitting Wrox as a full-time employee in August 2001, he branched out into VB.NET/C#programming and ASP.NET development and started his own business, CUASP Consulting Ltd, in April 2003. He maintains a variety of sites from www.cuasp.co.uk, his "work" site, to www.atomicwise.com, a selection of his writings on music and art. The birth of his twins Jay and Luca in February 2005 took chaos to a new level. He now divides his time between protecting the twins from their over-affectionate three-year-old brother Nye, composing electronic sounds on bits of dilapidated old keyboards for his music project Open E, and tutoring his cats in the art of peaceful co-existence and not violently mugging each other on the stairs.
Chris Ullman contributed Chapters 10, 12, 13, and 16 and Appendix B to this book.

Table of Contents

Acknowledgments ix
Introduction xxiii
An Introduction to ASP.NET 2.0 and the Wrox United Application
1(26)
The Site You Will Build
3(1)
ASP.NET 2.0---A Powerful Tool to Build Dynamic Web Sites
4(1)
Simple Solutions for Common Web Site Tasks
5(2)
Consistency and Personalization
5(1)
Navigation
5(1)
Login, Security, and Roles
5(1)
Connection to Data
6(1)
Code
6(1)
Componentization
6(1)
Web Services
6(1)
Performance and Caching
6(1)
Errors and Exception Handling
7(1)
Deployment
7(1)
Development Tools
7(1)
Where Does ASP.NET 2.0 Fit with Other Technology?
7(1)
Exploring the Wrox United Application
8(2)
Getting Started with Your Wrox United Site
10(1)
VWD Express---A Development Environment
10(15)
Introducing the ASP.NET Development Server
11(1)
VWD's Solution Explorer
11(2)
Creating, Opening, and Using Web Sites and Pages with VWD
13(1)
The Sample Code (Download) Directories
14(1)
Running a Page
15(1)
Design Surface
16(2)
Toolbox
18(2)
Properties Window
20(2)
Error List Window
22(2)
VWD's Database Explorer
24(1)
Summary
25(1)
Exercises
25(2)
Site Design
27(28)
General Design Objectives
28(1)
Master and Content Pages
29(10)
Creating a Master Page
29(2)
Creating Content Pages
31(2)
A Sample of Master and Content Pages
33(1)
Using Cascading Style Sheets in Master Page
34(5)
Additional Capabilities of Master Pages
39(3)
Multiple Levels of Master Pages
39(2)
Master Pages Support Multiple Content Placeholders
41(1)
Creating a Site Map
42(3)
General Guidelines for Site Design
45(1)
Standard Files for ASP.NET 2.0 Applications
45(8)
Web.config Holds Settings for the Entire Site
45(5)
Global.asax Holds Code for the Entire Site
50(1)
Editing Site Configuration Through a Web Browser
50(3)
Troubleshooting Site Design Errors
53(1)
Summary
53(1)
Exercises
54(1)
Page Design
55(46)
Static Page Design
55(7)
The World of HTML
62(6)
From HTML to XHTML Code
66(2)
Dynamic Content
68(1)
Dynamic Client Code and Dynamic Server Code
69(1)
Introduction to Server Controls
69(11)
The Server Control Toolbox
70(1)
What Are Server Controls?
71(4)
Source View in VWD
75(5)
Types of Server Controls
80(17)
Standard Controls
80(2)
HTML Controls
82(1)
Navigation Controls
83(14)
Summary
97(1)
Exercises
98(3)
Membership and Identity
101(32)
Security Basics
102(1)
Identity---Who Am I?
102(1)
Authentication---This Is Who I Am
102(1)
Authorization---This Is What I Can Do
102(1)
Logging In to a Site
103(1)
ASP.NET Security
103(25)
Login Controls
103(14)
Personalization
117(3)
Membership
120(5)
Authentication
125(3)
Wrox United Security
128(3)
Summary
131(1)
Exercises
132(1)
Styling with Themes
133(42)
Styling a Site
133(34)
Style Attributes
134(4)
CSS---Cascading Style Sheets
138(9)
Themes
147(18)
Applying Styling to a Site
165(2)
Themes in Wrox United
167(5)
Styling and Layout Best Practices
172(1)
Usability
172(1)
Accessibility
172(1)
Summary
173(1)
Exercises
174(1)
Events and Code
175(28)
Web Server Architecture
175(2)
HTTP Is Stateless
176(1)
Server-Side Events
177(1)
Adding Events to the Page
178(11)
The Postback Architecture
184(2)
What Events Are Available?
186(1)
Which Events Should I Use?
186(3)
Events Aren't Triggered by Users Only
189(4)
Indirect Events
193(3)
Canceling Events
196(4)
Global Events
200(1)
Summary
201(1)
Exercises
202(1)
Reading Data
203(58)
Introducing Databases
203(2)
Using ASP.NET 2.0's Data Controls
205(7)
Introducing Data Source Controls
205(1)
Introducing Data-Bound Controls
206(5)
Data Source Controls and Data-Bound Controls Work Together
211(1)
Configuring Data Controls with VWD
211(1)
Data Source Controls
212(6)
The Basic Properties of Data Source Controls
212(3)
Hiding the Connection String
215(2)
Details of the Connection String and Provider
217(1)
Data-Bound Controls
218(24)
Data-Bound Selection Lists
218(7)
The GridView Control
225(6)
The DataList and Repeater Controls
231(8)
The DetailsView and FormView Controls
239(3)
Data Source Controls with Parameters
242(5)
Multiple Data Controls Working Together
247(6)
Working with XML Data
253(5)
Reading XML Data
255(3)
Binding Syntax
258(1)
Summary
259(1)
Exercises
260(1)
Writing Data
261(24)
Introduction to Writing Data
261(2)
Options for Writing Data
262(1)
DataKeyNames
262(1)
Changing Existing Records
263(6)
Adding New Records
269(2)
Deleting Records
271(3)
Uploading Pictures
274(4)
Improving the Upload of Pictures
278(5)
Summary
283(1)
Exercises
284(1)
Code
285(62)
Variables and Data Types
285(21)
Common Language Runtime Types
287(1)
What Are All Those Curly Brackets and Semicolons For?
288(1)
Declaring Variables
288(1)
Assigning Values
289(1)
Data Conversion
289(2)
Null Values
291(1)
Working with Strings
291(3)
Working with Dates
294(3)
Working with Arrays and Collections
297(6)
Deciding Whether to Use Arrays or Collections
303(1)
Enumerations
304(1)
Constants
305(1)
Statements
306(20)
Operators
306(6)
Decisions
312(4)
Loops
316(10)
Namespaces
326(1)
Working with Classes
327(16)
Creating Classes
328(10)
Inheritance
338(5)
Variable Scope and Lifetime
343(2)
Generics
345(1)
Summary
346(1)
Exercises
346(1)
Componentization
347(36)
The Separation of Code from Content
348(1)
The Separation of Code from Design
349(1)
Code-Behind
350(2)
The Page Directive
350(1)
Partial Classes
351(1)
Event Handlers/Functions
351(1)
Creating a Code-Behind File
352(5)
Compilation in ASP.NET 2.0
356(1)
The App_Code Folder
357(1)
Data Layers
357(10)
Two-Tier Applications
357(1)
Three-Tier Applications
358(1)
What's New in ASP.NET 2.0
359(5)
The Wrox United Object Data Source
364(3)
User Controls
367(12)
User Control Structure
369(1)
A Simple User Control
370(5)
The Wrox United News User Control
375(4)
Composite Controls
379(1)
Assemblies and Custom Server Controls
379(1)
Summary
380(1)
Exercises
381(2)
Roles and Profiles
383(42)
The Importance of Roles
384(1)
Introducing Roles in Wrox United
385(11)
Configuring Page-Level Authorization
396(8)
Controlling Page Visibility
397(7)
Working with Roles in Code
404(1)
Enabling User Profiles
405(1)
Building a Profile
406(16)
Profiles in Wrox United
408(8)
Storing Preferences
416(6)
Managing Anonymous Shopping Carts
422(1)
Summary
423(1)
Exercises
423(2)
Web Services
425(36)
Looking at Web Services
426(4)
Consuming a Third-Party Web Service
427(3)
The Life Cycle of a Web Service
430(5)
Calling the Web Service
431(1)
Transmitting the Web Service
431(2)
Returning the Response
433(2)
Using the Response
435(1)
The Structure of Your Web Service
435(3)
Processing Directive
435(1)
Namespaces
436(1)
Public Class
436(1)
Web Methods
436(2)
Creating a Web Service
438(3)
Testing Your Web Service
441(3)
The WSDL Contract
443(1)
Web Service Discovery
444(3)
DISCO
445(1)
UDDI
445(1)
Discovering Your Web Service
445(2)
Adding the Fixture Service to Your Application
447(3)
Putting It All Together
450(5)
Remote Web Services --- PocketPC Application
455(4)
Web Service Security
459(1)
Encryption and Message-Based Security
459(1)
Authentication and Access Controls for Services
459(1)
Summary
460(1)
Exercises
460(1)
E-Commerce
461(62)
The E-Commerce Pipeline
462(1)
The Product Catalog
463(14)
The Structure of the Catalog
463(1)
The Design of the Catalog
463(1)
Implementation of the Catalog
464(7)
The Product Item Page
471(6)
The Shopping Cart
477(25)
The Shopping Object
477(10)
The Profile
487(2)
The Shopping Cart Control
489(13)
Checkout
502(18)
Order Processing
503(1)
Login
503(1)
Address/Delivery Details
503(1)
Credit Card Handling
504(1)
How You Intend to Checkout
505(15)
Secure Transactions
520(1)
What Else Can You Do?
520(1)
Summary
521(1)
Exercises
521(2)
Performance
523(32)
Simple Techniques
523(16)
Object Disposal
524(3)
Database Connections
527(1)
Stored Procedures
527(9)
Strongly Typed Collections
536(1)
Session State
537(1)
View State
538(1)
Pages and Code
539(4)
Data Binding and Postback
539(1)
Object References
540(1)
StringBuilder Versus String Concatenation
540(2)
Picking the Right Collection
542(1)
Caching
543(5)
Page Caching
543(5)
Designing for Performance
548(1)
Web Server Hardware and Software
549(1)
Testing Performance
549(4)
Tracing
549(3)
Stress Testing Tools
552(1)
Performance Monitor
552(1)
Summary
553(1)
Exercises
553(2)
Dealing with Errors
555(42)
Defensive Coding
555(9)
Parameter Checking
556(1)
Avoiding Assumptions
557(1)
Query Parameters
558(1)
Validation
559(5)
Exception Handling
564(15)
What Are Exceptions?
565(1)
The Exception Object
565(1)
How to Trap Exceptions
566(7)
Logging Exceptions
573(3)
Mailing Exceptions
576(2)
Raising Exceptions
578(1)
Exceptions Best Practices
579(1)
Global Exception Handling
579(2)
Custom Error Pages
581(2)
Configuring Custom Error Pages
582(1)
Debugging and Tracing
583(12)
Using ASP.NET Tracing
584(4)
Using the Debugger
588(7)
Summary
595(1)
Exercises
596(1)
Deployment, Builds, and Finishing Up
597(24)
Site Deployment
598(11)
Checklist
598(1)
Compiling and Running Your Application
599(1)
Publishing the Site
600(3)
XCOPY Deployment
603(2)
Common Problems Encountered When Deploying a Site
605(4)
Testing and Maintenance
609(8)
Testing Before and After
609(1)
Maintenance
610(7)
Where to Now?
617(1)
References
618(1)
Summary
618(1)
Exercise
619(2)
Appendix A: Exercise Answers
621(26)
Appendix B: Setup
647(18)
System Requirements
647(1)
Processor
647(1)
Operating System
648(1)
RAM
648(1)
Hard Disk
648(1)
CD or DVD Drive
648(1)
Display
648(1)
Mouse
648(1)
Visual Web Developer Express Installation
648(6)
Web Site Folder Setup
654(4)
IIS Setup (Optional)
654(4)
Wrox United Installation
658(5)
Network Service Enabling
659(2)
Windows XP Home Edition Users Only
661(1)
Checking the Installation with VWD and the ASP.NET Development Server
661(1)
Checking the Installation with IIS
662(1)
Troubleshooting
663(2)
Appendix C: Wrox United Database Design
665(8)
Players and Matches
666(3)
The Players Table
666(1)
The Goals Table
667(1)
The Fixtures Table
668(1)
The MatchReports Table
669(1)
The Gallery Table
669(1)
Standalone Tables
669(1)
The Opponents Table
669(1)
The News Table
670(1)
Wrox United Store Tables
670(3)
The Orders Table
670(1)
The OrderLines Table
671(1)
The Products Table
672(1)
Appendix D: VWD Database Explorer
673(18)
Opening the Database Explorer
673(1)
Adding an Existing Database to the Database Explorer
673(4)
Accessing Files
674(1)
SQL Databases on a SQL Server (Including SQL Server Express)
675(1)
Saving SQL Databases as an MDF.File
676(1)
Viewing Database Diagrams
677(4)
Exploring a Table's Structure
681(1)
Observing and Editing Data of Existing Tables
682(1)
Creating a New Database
683(1)
Creating a New Table and Adding Data
683(1)
Examining and Creating Views
684(5)
Examining a Stored Procedure (SPROC)
689(1)
Summary
690(1)
Appendix E: CSS and HTML Quick Reference
691(22)
Styling Pages and Controls
691(8)
Creating Inline Styles
692(1)
Linking Style Sheets to a Page
693(1)
CSS Inheritance
693(1)
CSS Styles
693(2)
CSS Sizes
695(1)
Fonts
695(1)
Colors
696(1)
CSS Selectors
696(2)
Floating Elements
698(1)
Pseudo Classes
699(1)
CSS Reference
699(5)
Common HTML Tags by Category
704(5)
Document Structure
704(1)
Titles and Headings
705(1)
Paragraphs and Lines
705(1)
Text Styles
706(1)
Lists
707(1)
Tables
707(1)
Links
707(1)
Graphics, Objects, Multimedia, and Scripts
708(1)
Forms
708(1)
Frames
709(1)
HTML Common Attributes to the CSS Property
709(2)
Recommended Reading
711(2)
Index 713

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.