rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9781590596210

Beginning Asp.net 2.0 in Vb 2005: From Novice to Professional

by MacDonald, Matthew
  • ISBN13:

    9781590596210

  • ISBN10:

    1590596218

  • eBook ISBN(s):

    9781430201557

  • Format: Paperback
  • Copyright: 2006-04-24
  • Publisher: Springer-Verlag New York Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $49.99 Save up to $31.99
  • Digital
    $39.00*
    Add to Cart

    DURATION
    PRICE
    *To support the delivery of the digital material to you, a digital delivery fee of $3.99 will be charged on each digital item.

Summary

The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 2.0 in VB 2005 guides you through Microsoft's latest technology for building dynamic websites. You'll learn to build dynamic web pages quickly, with only basic prior knowledge of Visual Basic. Included is thorough coverage of ASP.NET, to guide you from your first steps to advanced techniques like querying databases from within a web page and performance-tuning your site. By the time you've finished this book, you will have mastered the core techniques and possess the necessary knowledge to begin work as a professional ASP.NET developer.

Table of Contents

About the Author xxvii
About the Technical Reviewer xxix
Acknowledgments xxxi
Introduction xxxiii
PART 1 Introducing NET
Introducing the NET Framework
3(18)
The Evolution of Web Development
3(7)
HTML and HTML Forms
4(2)
Server-Side Programming
6(1)
Client-Side Programming
7(2)
The Problems with ASP
9(1)
The NET Framework
10(2)
VB 2005, C#, and the NET Languages
12(2)
The Intermediate Language
12(2)
Other NET Languages
14(1)
The Common Language Runtime
14(2)
The NET Class Library
16(1)
Visual Studio 2005
17(1)
NET 2.0
18(2)
ASP.NET2.0
18(2)
Visual Studio 2005
20(1)
The Last Word
20(1)
Learning the VB 2005 Language
21(30)
The .NET Languages
21(1)
The Evolution of Visual Basic
22(1)
Variables and Data Types
23(7)
Assignment and Initializers
25(1)
Arrays
26(2)
Enumerations
28(2)
Variable Operations
30(4)
Advanced Math
31(1)
Type Conversions
32(2)
Object-Based Manipulation
34(5)
The String Type
35(1)
The Date Time and Time Span Types
36(3)
The Array Type
39(1)
Conditional Structures
39(2)
The If ...End If Block
40(1)
The Select Case Block
41(1)
Loop Structures
41(4)
The For ...Next Block
42(1)
The For Each Block
43(1)
The Do ...Loop Block
44(1)
Methods
45(5)
Parameters
46(1)
Method Overloading
47(1)
Delegates
48(2)
The Last Word
50(1)
Types, Objects, and Namespaces
51(34)
The Basics of Classes
51(3)
Shared and Instance Members
53(1)
A Simple Class
54(1)
Building a Basic Class
54(13)
Creating an Object
55(1)
Adding Properties
56(3)
Adding a Basic Method
59(1)
Adding a Constructor
60(1)
Adding a Basic Event
61(3)
Testing the Product Class
64(3)
Value Types and Reference Types
67(4)
Assignment Operations
67(1)
Equality Testing
68(1)
Passing Parameters by Reference and by Value
68(2)
Reviewing NET Types
70(1)
Understanding Namespaces and Assemblies
71(4)
Using Namespaces
73(1)
Importing Namespaces
74(1)
Assemblies
74(1)
Advanced Class Programming
75(9)
Inheritance
76(1)
Shared Members
77(1)
Casting Objects
78(3)
Partial Classes
81(1)
Generics
82(2)
The Last Word
84(1)
Introducing Visual Studio 2005
85(34)
The Promise of Visual Studio
85(2)
Creating a Website
87(5)
The Solution Explorer
90(2)
Designing a Web Page
92(8)
Adding Web Controls
93(2)
The Properties Window
95(1)
Adding Ordinary HTML
96(2)
HTML Tables
98(2)
Writing Code
100(10)
Adding Event Handlers
100(2)
IntelliSense and Outlining
102(5)
Assembly References
107(1)
Namespace Imports
108(2)
Visual Studio Debugging
110(5)
Single-Step Debugging
110(4)
Variable Watches
114(1)
The Last Word
115(4)
PART 2 Developing ASP.NET Applications
Web Form Fundamentals
119(48)
The Anatomy of an ASP.NET Application
119(5)
ASP.NET File Types
121(1)
ASP.NET Application Directories
122(1)
Application Updates
123(1)
A Simple One-Page Web Application
124(15)
The ASP Solution---and Its Problems
126(1)
The ASP.NET Solution: Server Controls
127(1)
HTML Server Controls
128(2)
View State
130(1)
The HTML Control Classes
131(8)
Improving the Currency Converter
139(6)
Adding Multiple Currencies
139(2)
Storing Information in the List
141(1)
Adding Linked Images
142(2)
Setting Styles
144(1)
A Deeper Look at HTML Control Classes
145(6)
HTML Control Events
146(1)
Advanced Events with the Htmllnputlmage Control
147(2)
The HtmlControl Base Class
149(1)
The HtmlContainerControl Class
150(1)
The HtmllnputControl Class
150(1)
The Page Class
151(6)
The Controls Collection
152(1)
The HttpRequest Class
153(1)
The HttpResponse Class
154(1)
The HttpServerUtility Class
154(3)
ASP.NET Configuration
157(9)
The web.config File
158(1)
Nested Configuration
159(1)
Storing Custom Settings in the web.config File
160(3)
Modifying web.config Settings Programmatically
163(1)
The Website Administration Tool (WAT)
164(2)
The Last Word
166(1)
Web Controls
167(42)
Stepping Up to Web Controls
167(4)
Basic Web Control Classes
168(1)
The Web Control Tags
169(2)
Web Control Classes
171(7)
The WebControl Base Class
172(1)
Units
173(1)
Enumerated Values
174(1)
Colors
174(1)
Fonts
175(2)
Focus
177(1)
The Default Button
178(1)
List Controls
178(6)
Multiple-Select List Controls
179(3)
The BulletedList Control
182(2)
Table Controls
184(5)
Web Control Events and AutoPostBack
189(8)
How Postback Events Work
193(1)
The Page Life Cycle
194(3)
A Simple Web Page
197(10)
Improving the Greeting Card Applet
202(3)
Generating the Cards Automatically
205(2)
The Last Word
207(2)
Tracing, Logging, and Error Handling
209(46)
Common Errors
209(2)
Exception Handling
211(3)
The Exception Class
212(1)
The Exception Chain
213(1)
Handling Exceptions
214(6)
Catching Specific Exceptions
215(1)
Nested Exception Handlers
216(2)
Exception Handling in Action
218(2)
Mastering Exceptions
220(1)
Throwing Your Own Exceptions
220(5)
Logging Exceptions
225(9)
Using the EventLog Class
227(3)
Custom Logs
230(1)
Retrieving Log Information
231(3)
Error Pages
234(5)
Error Modes
236(1)
A Custom Error Page
237(1)
Specific Custom Error Pages
238(1)
Page Tracing
239(14)
Enabling Tracing
240(1)
Tracing Information
241(6)
Writing Trace Information
247(4)
Application-Level Tracing
251(2)
The Last Word
253(2)
Validation and Rich Controls
255(48)
Validation
255(4)
The Validation Controls
256(1)
The Validation Process
257(1)
Client-Side Validation
258(1)
The Validator Classes
258(1)
A Simple Validation Example
259(7)
Other Display Options
262(2)
Manual Validation
264(2)
Understanding Regular Expressions
266(11)
Literals and Metacharacters
266(1)
Finding a Regular Expression
267(3)
A Validated Customer Form
270(5)
Validation Groups
275(2)
Rich Controls
277(12)
The Calendar Control
278(8)
The AdRotator
286(3)
Pages with Multiple Views
289(13)
The MultiView Control
290(5)
The Wizard Control
295(7)
The Last Word
302(1)
State Management
303(40)
The Problem of State
303(1)
View State
304(7)
A View State Example
304(2)
Making View State Secure
306(1)
Retaining Member Variables
307(2)
Storing Custom Objects
309(2)
Transferring Information
311(9)
Cross-Page Posting
311(5)
The Query String
316(4)
Custom Cookies
320(3)
A Cookie Example
322(1)
Session State
323(6)
Session Tracking
324(1)
Using Session State
324(2)
A Session State Example
326(3)
Session State Configuration
329(8)
Cookieless
330(3)
Timeout
333(1)
Mode
333(4)
Application State
337(2)
An Overview of State Management Choices
339(1)
The Global.asax Application File
340(2)
Application Events
342(1)
The Last Word
342(1)
Master Pages and Themes
343(30)
Master Page Basics
343(12)
A Simple Master Page and Content Page
345(3)
How Master Pages and Content Pages Are Connected
348(2)
A Master Page with Multiple Content Regions
350(3)
Default Content
353(1)
Master Pages and Relative Paths
354(1)
Advanced Master Pages
355(7)
Table-Based Layouts
355(5)
Code in a Master Page
360(1)
Interacting with a Master Page Programmatically
360(2)
Themes
362(10)
How Themes Work
363(2)
Applying a Simple Theme
365(1)
Handling Theme Conflicts
366(2)
Creating Multiple Skins for the Same Control
368(1)
Skins with Templates and Images
369(3)
The Last Word
372(1)
Website Navigation
373(38)
Site Maps
373(20)
Defining a Site Map
374(5)
Seeing a Simple Site Map in Action
379(1)
Binding an Ordinary Page to a Site Map
380(1)
Binding a Master Page to a Site Map
381(2)
Binding Portions of a SiteMap
383(6)
Navigating Programmatically
389(2)
Mapping URLs
391(2)
The SiteMapPath Control
393(4)
Customizing the SiteMapPath
394(1)
Using SiteMapPath Styles and Templates
394(2)
Adding Custom Site Map Information
396(1)
The TreeView Control
397(7)
TreeView Properties
398(1)
TreeView Styles
399(5)
The Menu Control
404(6)
Menu Styles
406(1)
Menu Templates
407(3)
The Last Word
410(1)
Deploying ASP.NET Applications
411(40)
ASP.NET Applications and the Web Server
411(5)
How Web Servers Work
411(2)
Web Application URLs
413(2)
Web Farms
415(1)
IIS (Internet Information Services)
416(6)
Installing IIS 5
417(1)
Installing IIS 6
418(2)
Registering the ASP.NET File Mappings
420(1)
Verifying That ASP.NET Is Correctly Installed
421(1)
Managing Websites with IIS Manager
422(14)
Creating a Virtual Directory
423(3)
Virtual Directories and Web Applications
426(2)
Configuring an Existing Virtual Directory
428(6)
Adding a Virtual Directory to Your Neighborhood
434(2)
Deploying a Simple Site
436(6)
Web Applications and Components
437(1)
Other Configuration Steps
437(1)
The Aspnet Account
438(3)
Code Compilation
441(1)
Deploying with Visual Studio 2005
442(8)
Creating a Virtual Directory for a New Project
443(3)
Copying a Website
446(2)
Publishing a Website
448(2)
The Last Word
450(1)
PART 3 Working with Data
ADO.NET Fundamentals
451(64)
ADO.NET and Data Management
451(7)
The Role of the Database
452(1)
Database Access in the Internet World
453(1)
Introducing ADO.NET
454(2)
SQL Server 2005 Express Edition
456(1)
Browsing and Modifying Databases in Visual Studio
456(2)
SQL Basics
458(9)
Running Queries in Visual Studio
459(2)
The Select Statement
461(3)
The SQL Update Statement
464(1)
The SQL Insert Statement
465(1)
The SQL Delete Statement
466(1)
ADO.NET Basics
467(4)
Data Namespaces
469(1)
The Data Provider Objects
469(2)
Direct Data Access
471(1)
Importing the Namespaces
472(1)
Creating a Connection
472(6)
The Connection String
473(1)
Windows Authentication
474(1)
Connection String Tips
475(1)
Making the Connection
476(2)
Defining a Select Command
478(6)
Using a Command with a DataReader
479(1)
Putting It All Together
480(1)
Filling the List Box
481(3)
Updating Data
484(11)
Enhancing the Author Page
485(4)
Creating More Robust Commands
489(6)
Disconnected Data Access
495(10)
Selecting Disconnected Data
496(2)
Selecting Multiple Tables
498(5)
Modifying Disconnected Data
503(1)
Adding Rows to a DataSet
504(1)
Updating Disconnected Data
505(9)
The CommandBuilder
505(1)
Updating a DataTable
506(1)
Controlling Updates
506(2)
A Disconnected Update Example
508(2)
Concurrency Problems
510(1)
A Concurrency Example
511(3)
The Last Word
514(1)
Data Binding
515(42)
Introducing Data Binding
515(2)
Types of ASP.NET Data Binding
516(1)
How Data Binding Works
516(1)
Single-Value Data Binding
517(7)
A Simple Data Binding Example
518(3)
Simple Data Binding with Properties
521(1)
Problems with Single-Value Data Binding
522(1)
Using Code Instead of Simple Data Binding
523(1)
Repeated-Value Data Binding
524(17)
Data Binding with Simple List Controls
524(1)
A Simple List Binding Example
525(2)
Generic Collections
527(1)
Multiple Binding
527(3)
Data Binding and View State
530(1)
Data Binding with a Dictionary Collection
530(2)
Using the DataValueField Property
532(1)
Data Binding with ADO.NET
533(2)
Creating a Record Editor
535(6)
Data Source Controls
541(14)
The Page Life Cycle with Data Binding
542(1)
The SqlDataSource
543(2)
Selecting Records
545(2)
Parameterized Commands
547(4)
Handling Errors
551(1)
Updating Records
551(4)
The Last Word
555(2)
The Data Controls
557(44)
The GridView
557(7)
Automatically Generating Columns
558(2)
Defining Columns
560(4)
Formatting the GridView
564(7)
Formatting Fields
564(2)
Using Styles
566(3)
Formatting-Specific Values
569(2)
Selecting a GridView Row
571(5)
Adding a Select Button
572(2)
Using Selection to Create Master-Details Pages
574(2)
Editing with the GridView
576(3)
Sorting and Paging the GridView
579(6)
Sorting
579(3)
Paging
582(3)
Using GridView Templates
585(10)
Using Multiple Templates
587(1)
Editing Templates in Visual Studio
588(1)
Handling Events in a Template
589(1)
Editing with a Template
590(5)
The DetailsView and FormView
595(5)
The DetailsView
596(3)
The FormView
599(1)
The Last Word
600(1)
Files and Streams
601(30)
Files and Web Applications
601(1)
File System Information
602(13)
The Directory and File Classes
603(5)
The Directorylnfo and FileInfo Classes
608(2)
The Driveinfo Class
610(1)
A Sample File Browser
611(4)
Reading and Writing with Streams
615(10)
Text Files
615(2)
Binary Files
617(2)
Shortcuts for Reading and Writing Files
619(1)
A Simple Guest Book
620(5)
Allowing File Uploads
625(4)
The FileUpload Control
625(4)
The HtmllnputFile Control
629(1)
The Last Word
629(2)
XML
631(50)
XML's Hidden Role in .NET
631(1)
Configuration Files
631(1)
ADO.NET Data Access
632(1)
Web Services
632(1)
Anywhere Miscellaneous Data Is Stored
632(1)
XML Explained
632(7)
Improving the List with XML
634(2)
XML Basics
636(1)
Attributes
637(2)
Comments
639(1)
The XML Classes
639(18)
The XML TextWriter
640(2)
The XML Text Reader
642(6)
Working with XML Documents in Memory
648(5)
Reading an XML Document
653(3)
Searching an XML Document
656(1)
XML Validation
657(6)
XML Namespaces
657(2)
XSD Documents
659(1)
Validating an XML Document
660(3)
XML Display and Transforms
663(4)
The Xml Web Control
666(1)
XML Data Binding
667(6)
Nonhierarchical Binding
668(2)
Hierarchical Binding with the TreeView
670(2)
Binding to XML Content from Other Sources
672(1)
XML in ADO.NET
673(5)
Accessing a DataSet As XML
674(2)
Accessing XML Through the DataSet
676(2)
The Last Word
678(3)
PART 4 Website Security
Security Fundamentals
681(32)
Determining Security Requirements
681(2)
Restricted File Types
682(1)
Security Concepts
682(1)
The ASP.NET Security Model
683(6)
Security Strategies
686(1)
Certificates
686(2)
Secure Sockets Layer
688(1)
Forms Authentication
689(14)
Web.config Settings
691(1)
Authorization Rules
692(3)
The WAT
695(3)
The Login Page
698(5)
Windows Authentication
703(6)
IIS Settings
703(2)
Web.config Settings
705(2)
A Windows Authentication Test
707(2)
Impersonation
709(2)
Programmatic Impersonation
710(1)
The Last Word
711(2)
Membership
713(42)
The Membership Data Store
714(19)
Membership with SQL Server 2005
715(3)
Configuring the Membership Provider
718(5)
Manually Creating the Membership Tables
723(2)
Creating Users with the WAT
725(2)
The Membership and MembershipUser Classes
727(4)
Authentication with Membership
731(1)
Disabled Accounts
732(1)
The Security Controls
733(13)
The Login Control
734(5)
The CreateUserWizard Control
739(5)
The PasswordRecovery Control
744(2)
Role-Based Security
746(7)
Creating and Assigning Roles
747(3)
Restricting Access Based on Roles
750(1)
The LoginView, Control
751(2)
The Last Word
753(2)
Profiles
755(30)
Understanding Profiles
756(3)
Profile Performance
756(1)
How Profiles Store Data
757(2)
Using the SqlProfileProvider
759(23)
Enabling Authentication
759(1)
Profiles with SQL Server 2005 Express Edition
760(1)
Configuring the Profile Provider to Use a Different Database
761(2)
Manually Creating the Profile Tables
763(1)
The Profile Databases
764(2)
Defining Profile Properties
766(1)
Using Profile Properties
767(2)
Profile Serialization
769(2)
Profile Groups
771(1)
Profiles and Custom Data Types
772(5)
The Profile API
777(2)
Anonymous Profiles
779(3)
The Last Word
782(3)
PART 5 Web Services
Web Services Architecture
785(12)
Internet Programming Then and Now
785(3)
Components and the COM Revolution
786(1)
Web Services and the Programmable Web
787(1)
When Web Services Make Sense
787(1)
The Open-Standards Plumbing
788(3)
Web Services Description Language
789(1)
A Sample SOAP Message
790(1)
Communicating with a Web Service
791(1)
Web Service Discovery
792(2)
DISCO
793(1)
Universal Description, Discovery, and Integration
793(1)
WS-Interoperability
794(1)
The Last Word
795(2)
Creating Web Services
797(38)
Web Service Basics
797(3)
Configuring a Web Service Project
798(2)
The StockQuote Web Service
800(4)
Understanding the StockQuote Service
801(1)
Web Services with Code-Behind
801(2)
The ASP.NET Intrinsic Objects
803(1)
Documenting Your Web Service
804(3)
Descriptions
804(1)
The XML Namespace
805(1)
Conformance Claims
806(1)
Testing Your Web Service
807(6)
The Web Service Test Page
808(1)
Service Description
809(1)
Method Description
810(1)
Testing a Method
811(2)
Web Service Data Types
813(5)
The StockQuote Service with a Data Object
814(4)
Consuming a Web Service
818(10)
Configuring a Web Service Client in Visual Studio
818(1)
The Role of the Proxy Class
819(1)
Creating a Web Reference in Visual Studio
820(2)
Creating a Proxy with WSDL.exe
822(2)
Dissecting the Proxy Class
824(3)
Dynamic Web Service URLs
827(1)
Using the Proxy Class
828(3)
Waiting and Timeouts
829(1)
Web Service Errors
830(1)
Connecting Through a Proxy
831(1)
The Last Word
831(4)
Enhancing Web Services
835(32)
State Management
835(7)
The StockQuote Service with State Management
836(2)
Consuming a Stateful Web Service
838(4)
Web Service Security
842(11)
Windows Authentication with a Web Service
843(4)
Ticket-Based Authentication
847(2)
Ticket-Based Authentication with SOAP Headers
849(3)
Using SOAP Headers in the Client
852(1)
Web Service Transactions
853(2)
An Example with TerraService
855(7)
Adding the Reference
856(1)
Testing the Client
857(2)
Searching for More Information
859(1)
Displaying a Tile
860(2)
Windows Clients
862(2)
The Last Word
864(3)
PART 6 Advanced ASP.NET
Component-Based Programming
867(34)
Why Use Components?
867(2)
Component Jargon
869(3)
Three-Tier Design
869(2)
Encapsulation
871(1)
Data Objects
871(1)
Business Objects
871(1)
Components and Classes
872(1)
Creating a Component
872(8)
Classes and Namespaces
874(2)
Adding a Reference to the Component
876(2)
Using the Component
878(2)
Properties and State
880(3)
A Stateful Account Class
881(1)
A Stateless AccountUtility Class
882(1)
Data-Access Components
883(10)
A Simple Data-Access Component
884(4)
Using the Data-Access Component
888(3)
Enhancing the Component with Error Handling
891(1)
Enhancing the Component with Aggregate Information
892(1)
The ObjectDataSource
893(6)
Making Classes the ObjectDataSource Can Understand
894(1)
Selecting Records
894(1)
Using Method Parameters
895(2)
Updating Records
897(2)
The Last Word
899(2)
Custom Controls
901(50)
User Controls
901(15)
Creating a Simple User Control
902(3)
Independent User Controls
905(2)
Integrated User Controls
907(3)
User Control Events
910(2)
Passing Information with Events
912(4)
User Control Limitations
916(1)
Custom Controls
916(27)
Creating a Simple Derived Control
917(2)
Creating a Custom Control Library
919(1)
Using a Custom Control
920(3)
Custom Controls and Default Values
923(2)
Changing Control Rendering
925(4)
Creating a Web Control from Scratch
929(2)
Maintaining State Information
931(3)
Design-Time Support
934(1)
Creating a Composite Control
935(2)
Custom Control Events and Postbacks
937(6)
Dynamic Graphics
943(6)
Basic Drawing
943(3)
Drawing Custom Text
946(1)
Placing Custom Images Inside Web Pages
947(2)
The Last Word
949(2)
Caching and Performance Tuning
951(42)
Designing for Performance
952(3)
ASP.NET Code Compilation
952(1)
Server Controls
952(1)
ADO.NET Database Access
953(1)
Session State
954(1)
Profiling
955(5)
Stress Testing
955(1)
Performance Counters
956(4)
Caching
960(1)
Output Caching
961(9)
Caching on the Client Side
962(1)
Caching and the Query String
963(1)
Caching with Specific Parameters
964(1)
A Multiple Caching Example
965(1)
Custom Caching Control
966(2)
Fragment Caching
968(1)
Cache Profiles
968(1)
Output Caching in a Web Service
969(1)
Data Caching
970(12)
Adding Items to the Cache
970(1)
A Simple Cache Test
971(2)
Caching to Provide Multiple Views
973(3)
Data Caching in a Web Service
976(2)
Caching with the Data Source Controls
978(4)
Caching with Dependencies
982(10)
Cache Notifications in SQL Server 2000 or SQL Server 7
984(4)
Cache Notifications in SQL Server 2005
988(4)
The Last Word
992(1)
Index 993

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program