Skip to:Content
|
Bottom
Cover image for ASP.NET 2.0 all-in-one desk reference for dummies
Title:
ASP.NET 2.0 all-in-one desk reference for dummies
Personal Author:
Series:
--For dummies
Publication Information:
Hoboken, NJ : Wiley, 2006
ISBN:
9780471785989

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010115925 TK5105.8885.A26 L68 2006 Open Access Book Book
Searching...
Searching...
30000010115926 TK5105.8885.A26 L68 2006 Open Access Book Book
Searching...

On Order

Summary

Summary

Eight minibooks cover ASP.NET basics, Web controls, using HTML and ASP, C#, Visual Basic, database programming, using the .NET Framework, and advanced ASP.NET 2 (including themes, custom server controls, and Web parts) The ideal resource for Web programming newcomers as well as the 1.5 million existing ASP developers who want a complete ready-reference that covers the new ASP.NET 2 updates More than double the size of ASP.NET 2 For Dummies (0-7645-7907-X), the latest edition of the bestselling ASP beginner book that boasts combined sales of more than 100,000 copies across all editions Written by veteran Dummies author Doug Lowe, who is renowned for his ability to explain complex topics in plain English


Author Notes

Doug E. Lowe is a senior quality consultant at Hewlett Packard's Software Engineering Systems Division, where he has developed software for computer-aided electronic design. He received a B.S. in Applied Mathematics from Michigan State University and an M.S. in Chemistry from the University of Toledo, and has taught operating-systems architecture at the graduate level.

Lowe is noted for presenting technical material in a way that is entertaining as well as informative. His "Approach 3 for Windows for Dummies" and "Approach 97 for Windows for Dummies" are among the 50 titles he has authored or co-authored. He is also a consulting editor for DOS World.

(Bowker Author Biography)


Table of Contents

Introductionp. 1
About This Bookp. 2
How to Use This Bookp. 3
How This Book Is Organizedp. 3
Icons Used in This Bookp. 4
Where to Go from Herep. 5
Book I ASP.NET Basicsp. 7
Chapter 1 Welcome to ASP.NET Programmingp. 9
What Is ASP.NET, and Why Is It So Great?p. 9
Understanding Web Servers and Browsersp. 12
Understanding Static Web Pagesp. 13
Understanding Dynamic Web Pagesp. 14
Looking at a Simple ASP.NET Applicationp. 15
The .aspx (Markup) File for the Simple Calculator Applicationp. 17
The Code-Behind File of the Simple Calculator Applicationp. 18
Chapter 2 Installing Visual Studio Web Developer 2005 Express Edition or Visual Studio 2005p. 21
Looking at Visual Studio 2005 Editionsp. 21
Considering Visual Web Developer 2005 Express Editionp. 22
Installing Visual Web Developer 2005 Express Editionp. 22
Registering Visual Web Developer 2005 Express Editionp. 27
Installing Visual Studio 2005p. 30
Chapter 3 Creating Your First ASP.NET 2.0 Applicationp. 35
Understanding Visual Studio Projectsp. 35
Creating a New Web Sitep. 36
Using the Solution Explorerp. 39
Working with Controlsp. 40
Setting Propertiesp. 44
Setting the Page Titlep. 46
Looking at the Source Codep. 47
Adding Some Codep. 48
Running the Applicationp. 51
Chapter 4 Understanding Postback, Events, and Code-Behindp. 53
Understanding Postbackp. 53
Using the IsPostBack Variablep. 54
Understanding Eventsp. 55
Using the Handles Clause in Visual Basicp. 56
Designating an Event Handler in C#p. 58
Using C#'s Auto Event Wireupp. 58
Understanding Code-Behindp. 59
Using Single-File Pagesp. 60
Chapter 5 Creating Multipage Applicationsp. 63
Understanding the Basics of a Multipage Applicationp. 63
Adding Pagesp. 66
Redirecting to Another Pagep. 67
Adding Classesp. 68
Using Session Statep. 71
Looking into Data Bindingp. 74
Using Master Pagesp. 75
The C# Version of the Shopping Cart Applicationp. 79
The VB.NET Version of the Shopping Cart Applicationp. 83
Chapter 6 Testing and Debugging Your ASP.NET Applicationsp. 87
Creating a Simple Calculator Applicationp. 87
Running an ASP.NET Applicationp. 89
Dealing with Errorsp. 91
Working in Break Modep. 93
Displaying Variable Datap. 93
Stepping Through a Programp. 95
Setting Breakpointsp. 96
Using Response. Write for Debuggingp. 97
Book II Web Controlsp. 99
Chapter 1 Using Basic Web Server Controlsp. 101
Using Label Controlsp. 101
Using TextBox Controlsp. 103
Using Button Controlsp. 105
Using CheckBox Controlsp. 107
Using RadioButton Controlsp. 111
Using Image Controlsp. 112
Chapter 2 Using Validation Controlsp. 115
Validating the Hard Wayp. 115
Validation Controls to the Rescue!p. 117
Using the RequiredFieldValidator Controlp. 118
Using the CompareValidator Controlp. 120
Using the RangeValidator Controlp. 122
Using the RegularExpressionValidatorp. 123
Using a CustomValidator Controlp. 125
Using the ValidationSummary Controlp. 126
Using the CausesValidation and ValidationGroup Propertiesp. 128
Chapter 3 Using List Controlsp. 131
Using the CheckBoxList Controlp. 131
Working with ListItem Elementsp. 135
Toiling with the RadioButtonList Controlp. 138
Utilizing ListBox Controlsp. 139
Employing DropDownList Controlsp. 141
Accomplishing More with List Items in Codep. 143
Chapter 4 Using Advanced Web Server Controlsp. 147
Using the MultiView Controlp. 147
Utilizing the Wizard Controlp. 152
Working with the Calendar Controlp. 160
Making Use of the FileUpload Controlp. 163
Chapter 5 Working with User Controlsp. 165
Introducing User Controlsp. 165
Creating a User Controlp. 167
Adding a User Control to a pagep. 169
Adding Properties to a User Controlp. 170
Putting User-Control Properties to Workp. 173
Book III HTMLp. 175
Chapter 1 HTML Basicsp. 177
XHTML Rulez!p. 177
VWDE's Support for XHTMLp. 181
Editing Code in Source Viewp. 190
Editing Pages in Design Viewp. 194
Formatting Textp. 198
Chapter 2 Creating Tablesp. 201
Some Basic Table Talkp. 202
Creating Tables in the Designersp. 207
Creating Tables Programmaticallyp. 212
Creating a Table-Based Frameworkp. 217
Chapter 3 Working with Formsp. 221
Understanding Formsp. 221
Creating a Formp. 223
Working with Text Boxesp. 225
Working with Buttonsp. 229
Working with Check Boxes and Radio Buttonsp. 232
Using Drop-Down Lists and List Boxesp. 233
Checking Form Submissions with ASP.NETp. 237
Setting the Tab Orderp. 238
Chapter 4 Using Styles and Style Sheetsp. 241
Understanding Stylesp. 241
Working with Styles in Visual Studio 2005 and Visual Web Developerp. 246
Using Span and Div for Styles and Positionsp. 257
Creating and Applying Styles in Codep. 261
Chapter 5 Using Client-Side Scriptp. 267
Sampling Client-Side Script on Microsoft.comp. 267
Embedding Script in an ASP.NET Pagep. 271
Using Client-Side Scripts in ASP.NETp. 281
Client-Side Script and Validation Controlsp. 287
How Auto-Postback Uses Client-Side Scriptp. 289
Using Client-Side Callbacksp. 291
Book IV C#p. 301
Chapter 1 C# Programming Basicsp. 303
Dealing with Keywordsp. 303
Working with Statementsp. 304
Working with Blocksp. 306
Creating Identifiersp. 307
Crafting Commentsp. 307
Introducing Object-Oriented Programmingp. 308
Using .NET Framework Classesp. 311
Declaring Variablesp. 312
Initializing Variablesp. 315
Working with Built-in Data Typesp. 316
Working with Stringsp. 320
Working with Arithmetic Operatorsp. 323
Dividing Integersp. 325
Combining Operatorsp. 326
Using the Unary Plus and Minus Operatorsp. 327
Using Increment and Decrement Operatorsp. 328
Using the Assignment Operatorp. 329
Using Compound Assignment Operatorsp. 331
Chapter 2 Doing Things Conditionally in C#p. 333
Using Simple boolean Expressionsp. 333
Using if Statementsp. 335
Mr. Spock's Favorite Operators (the Logical Ones, of Course)p. 343
Pulling the Ol' Switch-er-oop. 347
Chapter 3 Going Around in Circles (Or, Looping in C#)p. 351
Your Basic while Loopp. 351
Breaking Out of a Loopp. 353
Looping Foreverp. 354
Using the continue Statementp. 355
Understanding do-while Loopsp. 356
The Famous for Loopp. 358
Nesting Your Loopsp. 365
Chapter 4 Using Methods and Exceptionsp. 367
The Basics of Making Methodsp. 367
A Simple Examplep. 368
Methods that Return Valuesp. 369
Using Methods that Take Parametersp. 371
Understanding Exceptionsp. 373
Catching Exceptionsp. 374
Catching Different Exception Typesp. 375
Using the Exception Messagep. 376
Using a finally Blockp. 376
Chapter 5 Getting into Object-Oriented Programmingp. 377
What Is Object-Oriented Programming?p. 377
Understanding Objectsp. 379
The Life Cycle of an Objectp. 382
Working with Related Classesp. 383
Declaring a Classp. 385
Using Fieldsp. 386
Creating Propertiesp. 387
Using Methodsp. 389
Creating Constructorsp. 390
Using thisp. 392
Working with Static Membersp. 393
Chapter 6 Working with Inheritancep. 397
Understanding Inheritancep. 397
Creating Derived Classesp. 400
Overriding Methodsp. 401
Protecting Your Membersp. 402
Using this and base in Your Derived Classesp. 403
Inheritance and Constructorsp. 404
Casting Up and Downp. 405
Determining an Object's Type: The is Operatorp. 406
Poly What?p. 407
Book V Visual Basicp. 409
Chapter 1 Mastering the Basics of Visual Basicp. 411
Looking at Classes, Structures, and Modulesp. 411
Working with Source Filesp. 412
Creating Sub Proceduresp. 413
Working with Statementsp. 414
Creating Identifiersp. 415
Adding Comments to Your Codep. 416
Declaring Variablesp. 416
Working with Data Typesp. 417
Working with Stringsp. 420
Working with Arithmetic Operatorsp. 422
Combining Operatorsp. 423
Using Assignment Statementsp. 424
Using Assignment Operatorsp. 425
Chapter 2 Controlling Your Programsp. 427
Using If Statementsp. 427
Using Conditional Expressionsp. 433
Getting Logicalp. 434
Using the Select Case Statementp. 436
Working with For/Next Loopsp. 438
Chapter 3 Working With Procedures, Exceptions, and Arraysp. 443
Using Sub Proceduresp. 444
Working with Functionsp. 445
Getting Finicky about Parametersp. 446
Understanding Exceptionsp. 448
Using Arraysp. 450
Chapter 4 Exploring Object-Oriented Programmingp. 455
Introducing Object-Oriented Programmingp. 455
Creating Objects from Classesp. 458
Declaring Classesp. 458
Using Shared Membersp. 464
Chapter 5 Demystifying Inheritance in VB.NETp. 467
Understanding Inheritancep. 467
Understanding Inheritance Hierarchiesp. 469
Creating a Derived Classp. 469
Overriding Methodsp. 470
Using Protected Membersp. 471
Using the MyBase Keywordp. 472
Using Casting with Inheritancep. 472
Determining an Object's Typep. 474
Confronting Polymorphismp. 474
Book VI Database Programmingp. 477
Chapter 1 Accessing Data with ADO.NETp. 479
Understanding the Basics of Relational Databasesp. 480
Working with Databases Using SQLp. 485
Piecing Together SQL Statementsp. 494
Connecting to Data with ADO.NETp. 495
Issuing Database Commandsp. 498
Displaying Data on a Web Pagep. 501
Retrieving Data from a Tablep. 503
Adding Security to Your SQL Statements - Read This!p. 504
Chapter 2 Displaying and Editing Data for the Webp. 507
Writing Data to a Page with a Labelp. 507
Binding to Datap. 509
Repeating Through a Result Setp. 518
Creating a Data-Entry Pagep. 523
Chapter 3 Displaying and Editing with the GridView Controlp. 529
Setting Up the AdventureWorks Databasep. 529
Creating a GridView Controlp. 530
Formatting the Displayp. 532
Editing and Deleting Data with a GridViewp. 534
Sorting and Paging the Data in Your Gridp. 540
Customizing the Columns in a Gridp. 542
Chapter 4 Displaying and Editing Detail Datap. 551
Introducing the DetailsView and FormView Controlsp. 552
Displaying a Record with a DetailsView Controlp. 552
Displaying Record Details with a FormView Controlp. 566
Chapter 5 Advanced Data Retrievalp. 575
Ditching the Eval Methodp. 575
Binding to Different Kinds of Datap. 578
Advanced Usage of Repeater Controlsp. 584
Chapter 6 Reading XML and Generic Datap. 591
Putting Together Some XMLp. 591
Transforming XML into a Formatted Tablep. 594
Displaying XML in a TreeView Controlp. 600
Accessing Generic Data with an ObjectDataSource Controlp. 604
Book VII Using the .NET Frameworkp. 609
Chapter 1 Handling Stringsp. 611
Formatting Stringsp. 611
Handling Special HTML Characters in Stringsp. 619
Splitting and Combining Stringsp. 620
Converting to Strings with the ToString Methodp. 623
Converting Strings to Numbersp. 625
Piecing Together Strings with a StringBuilderp. 626
Chapter 2 Manipulating Dates and Timesp. 629
Getting the Current Date and Timep. 629
Reading the Components of a DateTime Structurep. 630
Streaming a DateTime Structurep. 632
Handling Local Times Versus Universal Timesp. 634
Calculating with Datesp. 637
Parsing a Date-Time Stringp. 642
Chapter 3 Storing Objects in Specialized Collectionsp. 647
Iterating Through a Collectionp. 647
Using the ArrayList Classp. 651
Using the Hashtable Classp. 657
Using the Stack Classp. 660
Using the Queue Classp. 662
Collecting Stringsp. 664
Ordering Associations with the OrderedDictionaryp. 665
Chapter 4 Building Strongly Typed Collections with Generic Classesp. 667
Understanding the Name Gamep. 668
Using the Generic List Classp. 668
Working with the Generic LinkedList Classp. 670
Employing the Generic Dictionary Classp. 676
Using the Generic SortedDictionary Classp. 679
Using the Generic Stack Classp. 679
Working with the Generic Queue Classp. 681
Book VIII Advanced ASP.NET Programmingp. 683
Chapter 1 Security: Using Login Controlsp. 685
Understanding Authentication and Authorizationp. 685
Implementing Forms Authenticationp. 686
Peering into the Application Programming Interface (API)p. 709
Chapter 2 Using Profilesp. 715
Understanding Profilesp. 715
Enabling Anonymous User Profilesp. 716
Building the Profile-Based Web Pagep. 721
Using Profiles with Authenticated Usersp. 726
Maintaining the Profiles Databasep. 729
Using a Custom Profile Providerp. 732
Chapter 3 Site Navigationp. 739
Understanding Site Navigationp. 739
Using a Web.sitemap Filep. 740
Using the TreeView Controlp. 744
Using the Menu Controlp. 756
Using the SiteMapPath Controlp. 764
Chapter 4 Working with Themesp. 771
Understanding Site Themesp. 771
Creating an Opening Themep. 772
Letting Users Choose a Themep. 777
Applying a Theme Programmaticallyp. 780
Storing the Theme in a Profilep. 782
Dos and Don'ts for Themesp. 783
Shifting Definitions to Stylesp. 783
Overriding Themes and Who's the Bossp. 784
Where to Get Themesp. 787
Chapter 5 Building Portals with Web Partsp. 789
Understanding Portalsp. 789
An Example Web Portalp. 790
Understanding the Parts of Web Partsp. 795
Creating a Simple Web Partp. 796
Letting the User Move Web Parts Aroundp. 805
Connecting Web Parts Togetherp. 809
Connecting Web Parts Dynamicallyp. 820
Using the Editor Controlsp. 827
Letting Users Select Their Web Partsp. 829
Chapter 6 Creating and Consuming Web Servicesp. 833
Understanding Web Servicesp. 834
Creating a Web Servicep. 837
Consuming a Web Servicep. 846
Serving a Larger Helping of Datap. 856
Securing a Web Servicep. 860
Indexp. 863
Go to:Top of Page