Xem mẫu

Contents ListView 350 FormView 360 Other DataboundControls 365 DropDownList, ListBox, RadioButtonList, and CheckBoxList 365 TreeView 366 Ad Rotator 366 Menu 367 Inline Data-Binding Syntax 367 Data-Binding Syntax Changes 368 XML Data Binding 369 Expressions and Expression Builders 369 Summary 375 Chapter 8: Data Management with ADO.NET 377 Basic ADO.NET Features 378 Common ADO.NET Tasks 378 Basic ADO.NET Namespaces and Classes 383 Using the Connection Object 384 Using the Command Object 386 Using the DataReader Object 387 Using Data Adapter 389 Using Parameters 392 Understanding DataSet and DataTable 395 Using Oracle as Your Database with ASP.NET 3.5 400 The DataList Server Control 403 Looking at the Available Templates 403 Working with ItemTemplate 404 Working with Other Layout Templates 407 Working with Multiple Columns 409 The ListView Server Control 410 Looking at the Available Templates 410 Using the Templates 411 Creating the Layout Template 412 Creating the ItemTemplate 414 Creating the EditItemTemplate 415 Creating the EmptyItemTemplate 415 Creating the InsertItemTemplate 416 The Results 416 Using Visual Studio for ADO.NET Tasks 419 Creating a Connection to the Data Source 419 Working with a Dataset Designer 422 Using the CustomerOrders DataSet 427 xiv Contents AsynchronousCommand Execution 432 Asynchronous Connections 454 Summary 454 Chapter 9: Querying with LINQ 455 LINQ to Objects 455 Traditional Query Methods 455 Replacing Traditional Queries with LINQ 464 Data Grouping 472 Other LINQ Operators 473 LINQ Joins 473 Paging Using LINQ 475 LINQ to XML 476 Joining XML Data 479 LINQ to SQL 481 Insert, Update, and Delete Queries through LINQ 490 Extending LINQ 494 Summary 495 Chapter 10: Working with XML and LINQ to XML 497 The Basics of XML 498 The XML InfoSet 500 XSD–XML Schema Definition 501 Editing XML and XML Schema in Visual Studio 2008 503 XmlReader and XmlWriter 506 Using XDocument Rather Than XmlReader 508 Using Schema with XmlTextReader 509 Validating Against a Schema Using an XDocument 511 Including NameTable Optimization 513 Retrieving .NET CLR Types from XML 515 ReadSubtree and XmlSerialization 517 Creating CLR Objects from XML with LINQ to XML 518 Creating XML with XmlWriter 519 Creating XML with LINQ for XML 522 Improvements for XmlReader and XmlWriter in 2.0 524 XmlDocumentand XPathDocument 525 Problems with the DOM 525 XPath, the XPathDocument, and XmlDocument 525 DataSets 530 Persisting DataSets to XML 530 XmlDataDocument 531 xv Contents The XmlDataSource Control 533 XSLT 537 XslCompiledTransform 539 XSLT Debugging 543 Databasesand XML 544 FOR XML AUTO 545 SQL Server 2005 and the XML Data Type 549 Summary 556 Chapter 11: IIS7 557 Modular Architecture of IIS7 557 IIS-WebServer 558 IIS-WebServerManagementTools 561 IIS-FTPPublishingService 562 Extensible Architecture of IIS7 562 IIS7 and ASP.NET Integrated Pipeline 562 Building a Customized Web Server 564 Update Dependencies 565 Installing IIS7 on Windows Vista 565 Installing IIS7 on Windows Server 2008 565 Command-Line Setup Options 567 Unattended Setup Option 568 Upgrade 569 Internet Information Services (IIS) Manager 569 Application Pools 570 Web Sites 575 Hierarchical Configuration 577 Delegation 581 Moving an Application from IIS6 to IIS7 584 Summary 586 Chapter 12: Introduction to the Provider Model 587 Understanding the Provider 588 The Provider Model in ASP.NET 3.5 589 Setting Up Your Provider to Work with Microsoft SQL Server 7.0, 2000, 2005, or 2008 591 Membership Providers 598 Role Providers 602 The Personalization Provider 606 The SiteMap Provider 608 xvi Contents SessionState Providers 609 Web Event Providers 612 Configuration Providers 620 The WebParts Provider 623 Configuring Providers 625 Summary 626 Chapter 13: Extending the Provider Model 627 Providers Are One Tier in a Larger Architecture 627 Modifying Through Attribute-Based Programming 628 Simpler Password Structures Through the SqlMembershipProvider 629 Stronger Password Structures Through the SqlMembershipProvider 632 Examining ProviderBase 633 Building Your Own Providers 635 Creating the CustomProviders Application 635 Constructing the Class Skeleton Required 636 Creating the XML User Data Store 640 Defining the Provider Instance in the web.config File 641 Not Implementing Methods and Properties of the MembershipProvider Class 642 Implementing Methods and Properties of the MembershipProvider Class 643 Using the XmlMembershipProvider for User Login 651 Extending Pre-Existing Providers 652 Limiting Role Capabilities with a New LimitedSqlRoleProvider Provider 652 Using the New LimitedSqlRoleProvider Provider 656 Summary 660 Chapter 14: Site Navigation 661 XML-Based Site Maps 662 SiteMapPath Server Control 664 The PathSeparator Property 666 The PathDirection Property 668 The ParentLevelsDisplayed Property 669 The ShowToolTips Property 669 The SiteMapPath Control’s Child Elements 670 TreeView Server Control 670 Identifying the TreeView Control’s Built-In Styles 674 Examining the Parts of the TreeView Control 676 Binding the TreeView Control to an XML File 676 Selecting Multiple Options in a TreeView 679 xvii Contents Specifying Custom Icons in the TreeView Control 683 Specifying Lines Used to Connect Nodes 685 Working with the TreeView Control Programmatically 687 Menu Server Control 693 Applying Different Styles to the Menu Control 694 Menu Events 700 Binding the Menu Control to an XML File 701 SiteMap Data Provider 703 ShowStartingNode 703 StartFromCurrentNode 704 StartingNodeOffset 705 StartingNodeUrl 706 SiteMap API 706 URL Mapping 709 Sitemap Localization 710 Structuring the Web.sitemap File for Localization 710 Making Modifications to the Web.config File 711 Creating Assembly Resource (.resx) Files 712 Testing the Results 712 Security Trimming 714 Setting Up Role Management for Administrators 715 Setting Up the Administrators’ Section 716 Enabling Security Trimming 718 Nesting SiteMap Files 720 Summary 722 Chapter 15: Personalization 723 The Personalization Model 723 Creating Personalization Properties 725 Adding a Simple Personalization Property 725 Using Personalization Properties 726 Adding a Group of Personalization Properties 730 Using Grouped Personalization Properties 731 Defining Types for Personalization Properties 731 Using Custom Types 732 Providing Default Values 735 Making Personalization Properties Read-Only 735 AnonymousPersonalization 735 Enabling Anonymous Identification of the End User 736 Working with Anonymous Identification 739 Anonymous Options for Personalization Properties 739 Warnings about Anonymous User Profile Storage 740 xviii ... - tailieumienphi.vn
nguon tai.lieu . vn