Xem mẫu

Contents Tracing from Components 1113 Trace Forwarding 1114 TraceListeners 1114 Diagnostic Switches 1119 Web Events 1121 Debugging 1122 What’s Required 1123 IIS versus ASP.NET Development Server 1124 Starting a Debugging Session 1125 New Tools to Help You with Debugging 1128 Client-side Javascript Debugging 1131 SQL Stored Proc Debugging 1134 Exception and Error Handling 1134 Handling Exceptions on a Page 1135 Handling Application Exceptions 1136 Http Status Codes 1137 Summary 1138 Chapter 25: File I/O and Streams 1139 Working with Drives, Directories, and Files 1140 The DriveInfo Class 1140 The Directory and DirectoryInfo Classes 1143 File and FileInfo 1149 Working with Paths 1154 File and Directory Properties, Attributes, and Access Control Lists 1158 Readingand Writing Files 1166 Streams 1167 Readers and Writers 1171 Compressing Streams 1176 Working with Serial Ports 1181 Network Communications 1182 WebRequest and WebResponse 1183 Sending Mail 1189 Summary 1190 Chapter 26: User and Server Controls 1193 User Controls 1194 Creating User Controls 1194 Interacting with User Controls 1196 Loading User Controls Dynamically 1198 xxiv Contents Server Controls 1203 WebControl Project Setup 1204 Control Attributes 1209 Control Rendering 1210 Adding Tag Attributes 1214 Styling HTML 1217 Themes and Skins 1220 Adding Client-Side Features 1222 Detecting and Reacting to Browser Capabilities 1231 Using ViewState 1234 Raising PostBack Events 1238 Handling PostBack Data 1242 Composite Controls 1244 Templated Controls 1247 Creating Control Design-Time Experiences 1254 Summary 1273 Chapter 27: Modules and Handlers 1275 Processing HTTP Requests 1275 IIS 5/6 and ASP.NET 1275 IIS 7 and ASP.NET 1276 ASP.NET Request Processing 1277 HttpModules 1278 HttpHandlers 1289 Summary 1295 Chapter 28: Using Business Objects 1297 Using Business Objects in ASP.NET 3.5 1297 Creating Precompiled .NET Business Objects 1298 Using Precompiled Business Objects in Your ASP.NET Applications 1301 COM Interop: Using COM Within .NET 1302 The Runtime Callable Wrapper 1303 Using COM Objects in ASP.NET Code 1304 Error Handling 1309 Deploying COM Components with .NET Applications 1312 Using .NET from UnmanagedCode 1314 The COM-Callable Wrapper 1314 Using .NET Components Within COM Objects 1316 Early versus Late Binding 1320 xxv Contents Error Handling 1320 Deploying .NET Components with COM Applications 1322 Summary 1324 Chapter 29: Building and Consuming Services 1325 CommunicationBetween Disparate Systems 1325 Building a Simple XML Web Service 1327 The WebService Page Directive 1328 Looking at the Base Web Service Class File 1329 Exposing Custom Datasets as SOAP 1330 The XML Web Service Interface 1333 Consuming a Simple XML Web Service 1336 Adding a Web Reference 1336 Invoking the Web Service from the Client Application 1338 Transport Protocols for Web Services 1341 HTTP-GET 1342 HTTP-POST 1344 SOAP 1345 Overloading WebMethods 1346 Caching Web Service Responses 1349 SOAP Headers 1350 Building a Web Service with SOAP Headers 1351 Consuming a Web Service Using SOAP Headers 1353 Requesting Web Services Using SOAP 1.2 1355 Consuming Web Services Asynchronously 1357 Windows CommunicationFoundation 1360 The Larger Move to SOA 1360 WCF Overview 1361 Building a WCF Service 1362 Building the WCF Consumer 1370 Adding a Service Reference 1370 Working with Data Contracts 1374 Namespaces 1379 Summary 1379 Chapter 30: Localization 1381 Cultures and Regions 1381 Understanding Culture Types 1382 The ASP.NET Threads 1383 Server-Side Culture Declarations 1386 Client-Side Culture Declarations 1387 Translating Values and Behaviors 1389 xxvi Contents ASP.NET 3.5 Resource Files 1397 Making Use of Local Resources 1397 Making Use of Global Resources 1403 Looking at the Resource Editor 1406 Summary 1407 Chapter 31: Configuration 1409 Configuration Overview 1410 Server Configuration Files 1411 Application Configuration File 1413 How Configuration Settings Are Applied 1414 Detecting Configuration File Changes 1415 Configuration File Format 1415 Common Configuration Settings 1416 Connecting Strings 1416 Configuring Session State 1417 Compilation Configuration 1421 Browser Capabilities 1423 Custom Errors 1426 Authentication 1427 Anonymous Identity 1430 Authorization 1430 Locking-Down Configuration Settings 1433 ASP.NET Page Configuration 1433 Include Files 1435 Configuring ASP.NET Runtime Settings 1436 Configuring the ASP.NET Worker Process 1438 Storing Application-Specific Settings 1440 Programming Configuration Files 1441 Protecting Configuration Settings 1448 Editing Configuration Files 1452 Creating Custom Sections 1453 Using the NameValueFileSectionHandlerObject 1454 Using the DictionarySectionHandler Object 1456 Using the SingleTagSectionHandler Object 1457 Using Your Own Custom Configuration Handler 1458 Summary 1460 Chapter 32: Instrumentation 1461 Working with the Event Log 1461 Reading from the Event Log 1462 Writing to the Event Logs 1464 xxvii Contents Using PerformanceCounters 1468 Viewing Performance Counters Through an Administration Tool 1468 Building a Browser-Based Administrative Tool 1470 Application Tracing 1476 UnderstandingHealth Monitoring 1477 The Health Monitoring Provider Model 1477 Health Monitoring Configuration 1479 Writing Events via Configuration: Running the Example 1486 Routing Events to SQL Server 1487 Buffering Web Events 1490 E-mailing Web Events 1492 Summary 1498 Chapter 33: Administration and Management 1499 The ASP.NET Web Site Administration Tool 1499 The Home Tab 1501 The Security Tab 1501 The Application Tab 1510 The Provider Tab 1512 Configuring ASP.NET in IIS on Vista 1514 .NET Compilation 1517 .NET Globalization 1518 .NET Profile 1518 .NET Roles 1520 .NET Trust Levels 1520 .NET Users 1521 Application Settings 1522 Connection Strings 1523 Pages and Controls 1524 Providers 1524 Session State 1524 SMTP E-mail 1526 Summary 1527 Chapter 34: Packaging and Deploying ASP.NET Applications 1529 DeploymentPieces 1530 Steps to Take before Deploying 1530 Methods of Deploying Web Applications 1531 Using XCopy 1531 Using the VS Copy Web Site Option 1534 Deploying a Precompiled Web Application 1537 Building an Installer Program 1539 xxviii ... - tailieumienphi.vn
nguon tai.lieu . vn