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
  • 商品コード 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

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