Special Offers

Microsoft® ASP.NET Programming with Microsoft Visual C#® .NET Version 2003 Step By Step
Author G. Andrew Duthie
Pages 624
Disk N/A
Level Beg/Int
Published 04/23/2003
ISBN 9780735619357
Price $39.99
To see this book's discounted price, select a reseller below.

More Information

About the Book
Table of Contents
Sample Chapter
Companion Content
Related Series
Related Books
About the Author

Support: Book & CD

Rate this book
Barnes Noble Amazon Quantum Books


Table of Contents

    Finding Your Best Starting Pointxiii
    Installing the Sample Filesxv
Conventions Used in This Bookxvii
Chapter 1 Opening and Running an ASP.NET Web Application3
    Understanding Microsoft .NET3
        The .NET Framework4
        The Common Language Runtime4
        The .NET Framework Class Library5
        .NET Languages and Language Tools6
        Notepad and Other Text Editors7
        Visual Studio .NET7
        Additional .NET Languages8
    Getting Started with Visual Studio .NET9
        Visual Studio .NET Basics9
    The Visual Studio .NET IDE15
        IDE Enhancements15
        New Features18
        IDE Windows19
        Exiting Visual Studio .NET29
    What's New in ASP.NET30
        Familiar Features30
        What's New30
Chapter 2 Creating an ASP.NET Web Application33
    ASP.NET Project Types33
        ASP.NET Web Applications34
        ASP.NET Web Forms35
        ASP.NET Web Services36
        ASP.NET Mobile Web Applications36
    ASP.NET File Types37
    Visual Studio .NET38
        Creating Applications39
        Adding Server Controls42
        Building and Testing Your Page46
Chapter 3 Understanding Programming Basics49
    Expressions, Variables, and Constants50
        Declaring Variables54
    Flow Control65
        if Statements66
        switch case Statements68
        Looping Statements74
    Error Handling77
        Ways to Handle Exceptional Situations77
        Checking Return Values78
        Using Structured Exception Handling: try.catch.finally78
    Understanding Object-Oriented Programming Basics83
        Using Classes as Containers for Code84
        Using Inheritance85
Chapter 4 Managing State91
    Using Application State92
        Synchronizing Access to Application State94
        Recommendations for Application State96
        Limitations of Application State97
    Using Session State98
        Enabling Session State100
        Enabling Session State in Visual Studio.NET101
        Recommendations for Session State103
        Limitations of Session State103
    State and Scalability104
    Configuring Session State Storage105
        Storing Session State In-Process105
        Storing Session State Out-of-Process105
        Storing Session State in SQL Server107
        Using Cookieless Sessions108
        Formatting URLs for Cookieless Sessions109
    Using Client-Side Cookies for State Storage109
        Using Persistent Cookies110
    ASP.NET Server Control State111
Chapter 5 Configuring an ASP.NET Application113
    Understanding ASP.NET Configuration113
    Introducing Web.config115
        Editing Configuration Files116
        Configuring an ASP.NET Application118
        Overriding Configuration Settings for Subdirectories126
        Locking Down Configuration Settings127
        Running Against a Specific Framework Version128
Chapter 6 Security in ASP.NET131
    The Importance of Security132
    Security Basics133
        Server Setup and Application Design133
        Passwords, Please145
        Limit Those Accounts150
        No Samples, Thank You151
        You Need Validation152
        ASP.NET Request Validation153
        Access Control158
        Auditing and Logging159
        Using SSL to Protect Communications161
    Enabling Authentication165
        Selecting an Authentication Type166
        Using Windows-Based Authentication166
        Using .NET Passport Authentication169
        Using Forms-Based Authentication170
    Using Authorization178
        Using NTFS ACLs for Authorization178
        Using URL-Based Authorization179
    Using Impersonation181
    Understanding Code Access Security182
    Security Resources183
Chapter 7 Creating Web Forms189
    Anatomy of an ASP.NET Web Form189
        Understanding Page Elements190
        Understanding Page Lifetime192
        Using Directives194
        @ Page Examples199
        The Page Class209
        Writing Code in Web Forms211
        Creating and Using User Controls213
    Event Handling220
        Handling Page Events222
        Handling Control Events223
        Handling Page Errors224
    Page Runtime Structure225
Chapter 8 Using Server Controls229
    Types of Controls229
        HTML Controls229
        Web Controls237
        Adding Server Controls to a Page237
        Additional Web Control Examples246
        Specialty Controls257
        Validation Controls264
        Data-Bound Controls270
    ASP.NET Mobile Web Applications and Controls270
        ASP.NET Mobile Controls270
Chapter 9 Accessing and Binding Data279
    Understanding ADO.NET280
        Understanding .NET Data Providers280
        Understanding Datasets282
    Creating and Opening Connections283
        Using Trusted Connections287
    Reading and Updating Data with Commands290
        Using Stored Procedures299
    Using Datasets301
        Using DataAdapter Objects301
        Reading XML Data302
        Using DataTable, DataColumn, and DataRow Objects302
        Updating Datasets312
        Typed Datasets313
        Using DataView Objects321
    Reading Data with DataReader Objects322
    Data Binding323
        Simple Data Binding324
        Binding to Controls325
        Using DataBinder.Eval327
        Using the Data-Bound Controls327
Chapter 10 Creating Custom Server Controls351
    Creating Your First Control352
        Creating a Namespace353
        Creating a Class353
        Inheriting from a Base Class354
        Rendering Output from a Control355
        Building Your First Control in Visual Studio .NET356
    Adding Functionality364
        Adding Properties and Methods364
    Creating More Advanced Controls367
        Handling Postbacks368
        Creating, Raising, and Handling Events369
        A Registration and Login Control373
        Maintaining State401
        Creating Custom Controls Through Composition403
Chapter 11 Creating and Using Web Services409
    Understanding XML-Based Web Services409
        SOAP and Web Services412
        Additional Needs for Web Services412
    Creating a Web Service413
        Declaring a Web Service413
        Creating the Web Service Class414
        Advertising a Web Service425
        Securing a Web Service427
        Exploring Authentication Options428
    Using a Web Service429
        Locating a Web Service429
        Understanding WSDL Files431
        Creating a Proxy Class432
        How the Proxy Code Works438
        Additional Resources438
Chapter 12 Using Caching to Improve Performance441
    Understanding Caching441
    Using Output Caching442
        Using the @ OutputCache Directive442
        Using Response.Cache452
    Caching Arbitrary Data453
        Using the Cache APIs456
Chapter 13 Deploying an ASP.NET Application465
    Understanding the Structure of ASP.NET Applications466
        Distinguishing Between Physical Path and URL469
        Storing Application-Specific Configuration Settings471
    Deploying a Web Application Manually473
        Setting Up the Target Deployment Directory473
        Copying Files to the Target Directory473
        Setting IIS Permissions for Subdirectories475
    Deployment Options in Visual Studio .NET477
        Using Copy Project to Deploy a Web Application477
        Using a Web Setup Project to Deploy a Web Application478
Chapter 14 Tracing and Debugging ASP.NET Applications483
        Enabling Page-Level Trace Output484
        Enabling Application-Level Trace Output486
        Writing to the Trace Output487
        Understanding the Trace Output490
        Understanding Bug Categories491
        Preventing Bugs492
        Compiling Web Forms Pages in Debug Mode493
        Understanding ASP.NET Error Messages496
        Using the Visual Studio .NET Debugger496
Appendix A Migrating from ASP to ASP.NET507
    Migration Overview507
        Page Structure Changes507
        Language Changes509
        Migrating a Data Access Page to ASP.NET510
        Best Practices for Preparing for ASP.NET517
Appendix B ASP.NET Configuration Elements519
    Setting and Retrieving Custom Application Settings559
Appendix C Installing Visual Studio .NET 2003561
    Before You Install561
    Installing Visual Studio .NET 2003562

Last Updated: April 15, 2003
Top of Page