Microsoft Asp.Net Programming with Microsoft Visual C# .Net : Version 2003 Step by Step (Step by Step (Microsoft))

Microsoft Asp.Net Programming with Microsoft Visual C# .Net : Version 2003 Step by Step (Step by Step (Microsoft))

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 601 p.
  • 言語 ENG,ENG
  • 商品コード 9780735619357
  • DDC分類 005.276

Full Description


Teach yourself how to write high-performance Web applications with ASP.NET and Visual C# .NET 2003-one step at a time. This practical, hands-on tutorial expertly guides you through the fundamental tools and technologies, including the common language runtime, Web Forms, XML Web services, and the Microsoft .NET Framework 1.1?including new ASP.NET mobile controls. Work at your own pace through the easy-to-follow lessons and hands-on exercises to learn essential techniques. And accelerate your productivity by working with instructive code examples and best practices for ASP.NET Web development with Visual C#. Discover how to: Create a Web application, add a new Web Forms page, and add controls Manage application state and enable session state Configure applications and use side-by-side versioning Implement security features in ASP.NET, including new Request Validation Create Web Forms pages Delve deeper into server controls-and build your own Access and bind data Create and use Web services Use caching to improve performance Trace and debug ASP.NET applications Deploy applications manually or through Visual Studio .NET. Includes practice exercises and sample code on the Web

Table of Contents

Acknowledgments                                    xii
Introduction xiii
Finding Your Best Starting Point xiii
Installing the Sample Files xv
Conventions Used in This Book xvii
Part 1 Getting Started with ASP.NET
Opening and Running an ASP.NET Web 3 (30)
Application
Understanding Microsoft .NET 3 (6)
The .NET Framework 4 (1)
The Common Language Runtime 4 (1)
The .NET Framework Class Library 5 (1)
.NET Languages and Language Tools 6 (1)
Notepad and Other Text Editors 7 (1)
Visual Studio .NET 7 (1)
C# 7 (1)
Additional .NET Languages 8 (1)
Getting Started with Visual Studio .NET 9 (6)
Visual Studio .NET Basics 9 (6)
The Visual Studio .NET IDE 15 (15)
IDE Enhancements 15 (3)
New Features 18 (1)
IDE Windows 19 (7)
Toolbars 26 (1)
Menus 27 (1)
Options 28 (1)
Exiting Visual Studio .NET 29 (1)
What's New in ASP.NET 30 (3)
Familiar Features 30 (1)
What's New 30 (3)
Creating an ASP.NET Web Application 33 (16)
ASP.NET Project Types 33 (4)
ASP.NET Web Applications 34 (1)
ASP.NET Web Forms 35 (1)
Code-Behind 35 (1)
ASP.NET Web Services 36 (1)
ASP.NET Mobile Web Applications 36 (1)
ASP.NET File Types 37 (1)
Visual Studio .NET 38 (11)
Creating Applications 39 (3)
Adding Server Controls 42 (4)
Building and Testing Your Page 46 (3)
Understanding Programming Basics 49 (42)
Expressions, Variables, and Constants 50 (10)
Expressions 50 (1)
Variables 51 (3)
Declaring Variables 54 (5)
Operators 59 (1)
Constants 59 (1)
Enumerations 60 (1)
Methods 60 (5)
Flow Control 65 (12)
if Statements 66 (2)
switch case Statements 68 (6)
Looping Statements 74 (3)
Error Handling 77 (6)
Ways to Handle Exceptional Situations 77 (1)
Checking Return Values 78 (1)
Using Structured Exception Handling: 78 (5)
try...catch...finally
Understanding OBject-Oriented Programming 83 (8)
Basics
Using Classes as Containers for Code 84 (1)
Using Inheritance 85 (6)
Part 2 ASP.NET Infrastructure
Managing State 91 (22)
Using Application State 92 (6)
Synchronizing Access to Application 94 (2)
State
Recommendations for Application State 96 (1)
Limitations of Application State 97 (1)
Using Session State 98 (6)
Enabling Session State 100 (1)
Enabling Session State in Visual 101 (2)
Studio.NET
Recommendations for Session State 103 (1)
Limitations of Session State 103 (1)
State and Scalability 104 (1)
Configuring Session State Storage 105 (4)
Storing Session State In-Process 105 (1)
Storing Session State Out-of-Process 105 (2)
Storing Session State in SQL Server 107 (1)
Using Cookieless Sessions 108 (1)
Formatting URLs for Cookieless Sessions 109 (1)
Using Client-Side Cookies for State 109 (2)
Storage
Using Persistent Cookies 110 (1)
ASP.NET Server Control State 111 (2)
Configuring an ASP.NET Application 113 (18)
Understanding ASP.NET Configuration 113 (2)
Introducing Web.config 115 (16)
Editing Configuration Files 116 (2)
Configuring an ASP.NET Application 118 (8)
Overriding Configuration Settings for 126 (1)
Subdirectories
Locking Down Configuration Settings 127 (1)
Running Against a Specific Framework 128 (3)
Version
Security in ASP.NET 131 (58)
The Importance of Security 132 (1)
Security Basics 133 (32)
Server Setup and Application Design 133 (12)
Passwords, Please 145 (5)
Limit Those Accounts 150 (1)
No Samples, Thank You 151 (1)
You Need Validation 152 (1)
ASP.NET Request Validation 153 (2)
Patching 155 (3)
Access Control 158 (1)
Auditing and Logging 159 (2)
Using SSL to Protect Communications 161 (4)
Enabling Authentication 165 (13)
Selecting an Authentication Type 166 (1)
Using Windows-Based Authentication 166 (3)
Using .NET Passport Authentication 169 (1)
Using Forms-Based Authentication 170 (8)
Using Authorization 178 (3)
Using NTFS ACLs for Authorization 178 (1)
Using URL-Based Authorization 179 (2)
Using Impersonation 181 (1)
Understanding Code Access Security 182 (1)
Security Resources 183 (6)
Part 3 ASP.NET Web Forms
Creating Web Forms 189 (40)
Anatomy of an ASP.NET Web Form 189 (31)
Understanding Page Elements 190 (2)
Understanding Page Lifetime 192 (2)
Using Directives 194 (5)
@ Page Examples 199 (10)
The Page Class 209 (2)
Writing Code in Web Forms 211 (2)
Creating and Using User Controls 213 (7)
Event Handling 220 (5)
Handling Page Events 222 (1)
Handling Control Events 223 (1)
Handling Page Errors 224 (1)
Page Runtime Structure 225 (4)
Using Server Controls 229 (50)
Types of Controls 229 (41)
HTML Controls 229 (8)
Web Controls 237 (1)
Adding Server Controls to a Page 237 (9)
Additional Web Control Examples 246 (11)
Specialty Controls 257 (7)
Validation Controls 264 (6)
Data-Bound Controls 270 (1)
ASP.NET Mobile Web Applications and 270 (9)
Controls
ASP.NET Mobile Controls 270 (9)
Accessing and Binding Data 279 (72)
Understanding ADO.NET 280 (3)
Understanding .NET Data Providers 280 (2)
Understanding Datasets 282 (1)
Creating and Opening Connections 283 (7)
SqlConnection 283 (3)
OleDbConnection 286 (1)
Using Trusted Connections 287 (3)
Reading and Updating Data with Commands 290 (11)
SqlCommand 290 (6)
OleDbCommand 296 (3)
Using Stored Procedures 299 (2)
Using Datasets 301 (21)
Using DataAdapter Objects 301 (1)
Reading XML Data 302 (1)
Using DataTable, DataColumn, and 302 (10)
DataRow Objects
Updating Datasets 312 (1)
Typed Datasets 313 (8)
Using DataView Objects 321 (1)
Reading Data with DataReader Objects 322 (1)
SqlDataReader 322 (1)
OleDbDataReader 323 (1)
Data Binding 323 (28)
Simple Data Binding 324 (1)
Binding to Controls 325 (2)
Using DataBinder.Eval 327 (1)
Using the Data-Bound Controls 327 (24)
Part 4 Beyond the Basics
Creating Custom Server Controls 351 (58)
Creating Your First Control 352 (12)
Creating a Namespace 353 (1)
Creating a Class 353 (1)
Inheriting from a Base Class 354 (1)
Rendering Output from a Control 355 (1)
Building Your First Control in Visual 356 (8)
Studio .NET
Adding Functionality 364 (3)
Adding Properties and Methods 364 (3)
Creating More Advanced Controls 367 (42)
Handling Postbacks 368 (1)
Creating, Raising, and Handling Events 369 (4)
A Registration and Login Control 373 (28)
Maintaining State 401 (2)
Creating Custom Controls Through 403 (6)
Composition
Creating and Using Web Services 409 (32)
Understanding XML-Based Web Services 409 (4)
SOAP and Web Services 412 (1)
Additional Needs for Web Services 412 (1)
Creating a Web Service 413 (16)
Declaring a Web Service 413 (1)
Creating the Web Service Class 414 (11)
Advertising a Web Service 425 (1)
Chapter_11.disco 426 (1)
Securing a Web Service 427 (1)
Exploring Authentication Options 428 (1)
Using a Web Service 429 (12)
Locating a Web Service 429 (2)
Understanding WSDL Files 431 (1)
Creating a Proxy Class 432 (2)
MakeServices.bat 434 (4)
How the Proxy Code Works 438 (1)
Additional Resources 438 (3)
Using Caching to Improve Performance 441 (24)
Understanding Caching 441 (1)
Using Output Caching 442 (11)
Using the @ OutputCache Directive 442 (10)
Using Response.Cache 452 (1)
Caching Arbitrary Data 453 (12)
Using the Cache APIs 456 (9)
Deploying an ASP.NET Application 465 (18)
Understanding the Structure of ASP.NET 466 (7)
Applications
Distinguishing Between Physical Path 469 (2)
and URL
Storing Application-Specific 471 (2)
Configuration Settings
Deploying a Web Application Manually 473 (4)
Setting Up the Target Deployment 473 (1)
Directory
Copying Files to the Target Directory 473 (2)
Setting IIS Permissions for 475 (2)
Subdirectories
Deployment Options in Visual Studio .NET 477 (6)
Using Copy Project to Deploy a Web 477 (1)
Application
Using a Web Setup Project to Deploy a 478 (5)
Web Application
Tracing and Debugging ASP.NET Applications 483 (98)
Tracing 484 (7)
Enabling Page-Level Trace Output 484 (2)
Enabling Application-Level Trace Output 486 (1)
Writing to the Trace Output 487 (3)
Understanding the Trace Output 490 (1)
Debugging 491 (16)
Understanding Bug Categories 491 (1)
Preventing Bugs 492 (1)
Compiling Web Forms Pages in Debug Mode 493 (3)
Understanding ASP.NET Error Messages 496 (1)
Using the Visual Studio .NET Debugger 496 (11)
Part 5 Appendixes
Appendix A Migrating from ASP to ASP.NET 507 (12)
Migration Overview 507 (1)
Page Structure Changes 507 (2)
Language Changes 509 (1)
Migrating a Data Access Page to ASP.NET 510 (7)
Best Practices for Preparing for ASP.NET 517 (2)
Appendix B ASP.NET Configuration Elements 519 (42)
<trace> 519 (1)
<globalization> 520 (2)
<httpRuntime> 522 (3)
<compilation> 525 (6)
<pages> 531 (3)
<customErrors> 534 (2)
<authentication> 536 (4)
<identity> 540 (1)
<authorization> 541 (2)
<machineKey> 543 (1)
<securityPolicy> 544 (1)
<trust> 545 (1)
<sessionState> 546 (2)
<httpHandlers> 548 (2)
<httpModules> 550 (2)
<processModel> 552 (5)
<webControls> 557 (1)
<clientTarget> 557 (1)
<browserCaps> 558 (1)
Setting and Retrieving Custom 559 (1)
Application Settings
<appSettings> 559 (2)
Appendix C Installing Visual Studio .NET 561 (20)
2003
Before You Install 561 (1)
Installing Visual Studio .NET 2003 562 (19)
Index 581