Special Offers

Microsoft® ASP.NET Programming with Microsoft Visual Basic® .NET Version 2003 Step By Step
Author G. Andrew Duthie
Pages 624
Disk N/A
Level Int/Adv
Published 04/23/2003
ISBN 9780735619340
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 Application 3
    Understanding Microsoft .NET 3
        The .NET Framework 4
        The Common Language Runtime 4
        The .NET Framework Class Library 5
        .NET Languages and Language Tools 6
        Notepad and Other Text Editors 7
        Visual Studio .NET 7
        Visual Basic .NET 8
        C# 8
        Additional .NET Languages 8
    Getting Started with Visual Studio .NET 9
        Visual Studio .NET Basics 9
    The Visual Studio .NET IDE 15
        IDE Enhancements 16
        New Features 18
        IDE Windows 19
        Toolbars 26
        Menus 27
        Options 28
        Exiting Visual Studio .NET 29
    What's New in ASP.NET 30
        Familiar Features30
        What's New30
CHAPTER 2 Creating an ASP.NET Web Application 33
    ASP.NET Project Types 33
        ASP.NET Web Applications34
        ASP.NET Web Forms 35
        Code-Behind 35
        ASP.NET Web Services36
        ASP.NET Mobile Web Applications 36
    ASP.NET File Types 37
    Visual Studio .NET 38
        Creating Applications 39
        Adding Server Controls 42
        Building and Testing Your Page 46
CHAPTER 3 Understanding Programming Basics 49
    Expressions, Variables, and Constants 50
        Expressions 50
        Variables 51
        Data Types 51
        Value Types vs. Reference Types 52
        Declaring Variables 53
        Variable Lifetime 54
        Scope 56
        Accessibility 57
        Constants 58
        Enumerations 59
    Procedures 60
        Sub Procedures 60
        Receiving Input Parameters 60
        Function Procedures 62
    Flow Control 62
        If Statements 63
        Select Case Statements 63
        Looping Statements 69
        Using For. Loops 69
        Using For Each. Loops 70
        Using Do. Loops 71
        Using While.End While Loops 71
    Error Handling 72
        Using the On Error Statement 73
        Using Structured Exception Handling: Try.Catch.Finally 74
    Understanding Object-Oriented Programming Basics 78
        Using Classes as Containers for Code 80
        Using Inheritance 80
        Inheriting from the .NET Base Classes 82
        Inheriting Across Languages 83
CHAPTER 4 Managing State 87
    Using Application State88
        Synchronizing Access to Application State90
        Recommendations for Application State92
        Limitations of Application State93
    Using Session State94
        Enabling Session State96
        Enabling Session State in Visual Studio.NET97
        Recommendations for Session State99
        Limitations of Session State99
    State and Scalability100
    Configuring Session State Storage101
        Storing Session State In-Process101
        Storing Session State Out-of-Process101
        Storing Session State in SQL Server103
        Using Cookieless Sessions104
        Formatting URLs for Cookieless Sessions105
    Using Client-Side Cookies for State Storage105
        Using Persistent Cookies106
    ASP.NET Server Control State107
CHAPTER 5 Configuring an ASP.NET Application 109
    Understanding ASP.NET Configuration 109
    Introducing Web.config 111
        Editing Configuration Files 112
        Editing the Master Configuration File 113
        Configuring an ASP.NET Application 114
        Overriding Configuration Settings for Subdirectories 122
        Locking Down Configuration Settings 123
        Running Against a Specific Framework Version 124
CHAPTER 6 Security in ASP.NET 127
    The Importance of Security 128
    Security Basics 129
        Server Setup and Application Design 129
        Passwords, Please 141
        Limit Those Accounts 146
        No Samples, Thank You 147
        You Need Validation 148
        ASP.NET Request Validation 149
        Patching 151
        Access Control 154
        Auditing and Logging 155
        Using SSL to Protect Communications 157
    Enabling Authentication 161
        Selecting an Authentication Type 162
        Using Windows-Based Authentication 162
        Using .NET Passport Authentication 165
        Using Forms-Based Authentication 166
    Using Authorization 174
        Using NTFS ACLs for Authorization 174
        Using URL-Based Authorization 175
    Using Impersonation 177
    Understanding Code Access Security 178
    Security Resources 179
CHAPTER 7 Creating Web Forms 185
    Anatomy of an ASP.NET Web Form 185
        Understanding Page Elements 186
        Understanding Page Lifetime 188
        Using Directives 190
        @ Page Examples 195
        The Page Class205
        Writing Code in Web Forms207
        Creating and Using User Controls209
    Event Handling216
        Handling Page Events218
        Handling Control Events219
        Handling Page Errors220
    Page Runtime Structure221
CHAPTER 8 Using Server Controls225
    Types of Controls225
        HTML Controls225
        Web Controls233
        Adding Server Controls to a Page233
        Additional Web Control Examples242
        Specialty Controls253
        Validation Controls260
        Data-Bound Controls266
    ASP.NET Mobile Web Applications and Controls266
        ASP.NET Mobile Controls266
CHAPTER 9 Accessing and Binding Data275
    Understanding ADO.NET276
        Understanding .NET Data Providers276
        Understanding Datasets278
    Creating and Opening Connections279
        Using Trusted Connections283
    Reading and Updating Data with Commands286
        Using Stored Procedures295
    Using Datasets297
        Using DataAdapter Objects297
        Reading XML Data298
        Using DataTable, DataColumn, and DataRow Objects298
        Updating Datasets308
        Typed Datasets309
        Using DataView Objects317
    Reading Data with DataReader Objects318
    Data Binding319
        Simple Data Binding320
        Binding to Controls321
        Using DataBinder.Eval323
        Using the Data-Bound Controls323
CHAPTER 10 Creating Custom Server Controls347
    Creating Your First Control348
        Creating a Namespace349
        Creating a Class349
        Inheriting from a Base Class350
        Rendering Output from a Control351
        Building Your First Control in Visual Studio .NET352
    Adding Functionality360
        Adding Properties and Methods360
    Creating More Advanced Controls363
        Handling Postbacks364
        Creating, Raising, and Handling Events365
        A Registration and Login Control370
        Maintaining State396
        Creating Custom Controls Through Composition398
CHAPTER 11 Creating and Using Web Services403
    Understanding XML-Based Web Services403
        SOAP and Web Services406
        Additional Needs for Web Services406
    Creating a Web Service407
        Declaring a Web Service407
        Creating the Web Service Class408
        Advertising a Web Service418
        Securing a Web Service420
        Exploring Authentication Options421
    Using a Web Service423
        Locating a Web Service423
        Understanding WSDL Files425
        Creating a Proxy Class426
        How the Proxy Code Works432
        Additional Resources432
CHAPTER 12 Using Caching to Improve Performance435
    Understanding Caching435
    Using Output Caching436
        Using the @ OutputCache Directive436
        Using Response.Cache446
    Caching Arbitrary Data447
        Using the Cache APIs450
CHAPTER 13 Deploying an ASP.NET Application459
    Understanding the Structure of ASP.NET Applications460
        Distinguishing Between Physical Path and URL463
        Storing Application-Specific Configuration Settings465
    Deploying a Web Application Manually467
        Setting Up the Target Deployment Directory467
        Copying Files to the Target Directory467
        Setting IIS Permissions for Subdirectories469
    Deployment Options in Visual Studio .NET471
        Using Copy Project to Deploy a Web Application471
        Using a Web Setup Project to Deploy a Web Application472
CHAPTER 14 Tracing and Debugging ASP.NET Applications477
        Enabling Page-Level Trace Output478
        Enabling Application-Level Trace Output480
        Writing to the Trace Output481
        Understanding the Trace Output484
        Understanding Bug Categories485
        Preventing Bugs486
        Compiling Web Forms Pages in Debug Mode487
        Understanding ASP.NET Error Messages490
        Using the Visual Studio .NET Debugger490
APPENDIX A Migrating from ASP to ASP.NET501
    Migration Overview501
        Page Structure Changes501
        Language Changes503
        Migrating a Data Access Page to ASP.NET504
        Best Practices for Preparing for ASP.NET511
APPENDIX B ASP.NET Configuration Elements513
    Setting and Retrieving Custom Application Settings553
APPENDIX C Installing Visual Studio .NET 2003555
    Before You Install555
    Installing Visual Studio .NET 2003556

Last Updated: April 16, 2003
Top of Page