Tài liệu www.dbebooks.com - Free Books & magazines Pro ASP.NET 2.0 Website Programming ■■■ Damon docx

673 511 1
Tài liệu www.dbebooks.com - Free Books & magazines Pro ASP.NET 2.0 Website Programming ■■■ Damon docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

www.dbebooks.com - Free Books & magazines 6293_FM.fm Page i Tuesday, November 15, 2005 7:29 PM Pro ASP.NET 2.0 Website Programming ■■■ Damon Armstrong 6293_FM.fm Page ii Tuesday, November 15, 2005 7:29 PM Pro ASP.NET 2.0 Website Programming Copyright © 2005 by Damon Armstrong All rights reserved No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher ISBN (pbk): 1-59059-546-7 Printed and bound in the United States of America Trademarked names may appear in this book Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark Lead Editor: Tony Davis Technical Reviewer: Damien Foggon Editorial Board: Steve Anglin, Dan Appleman, Ewan Buckingham, Gary Cornell, Tony Davis, Jason Gilmore, Jonathan Hassell, Chris Mills, Dominic Shakeshaft, Jim Sumser Project Manager: Denise Santoro Lincoln Copy Edit Manager: Nicole LeClerc Copy Editor: Julie McNamee Assistant Production Director: Kari Brooks-Copony Production Editor: Kelly Winquist Composition, proofreading, and indexing: Argosy Publishing Artist: Kinetic Publishing Services, LLC Cover Designer: Kurt Krames Manufacturing Director: Tom Debolski Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013 Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders-ny@springer-sbm.com, or visit http://www.springeronline.com For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley, CA 94710 Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com, or visit http://www.apress.com The information in this book is distributed on an “as is” basis, without warranty Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work The source code for this book is available to readers at http://www.apress.com in the Source Code section You will need to answer questions pertaining to this book to successfully download the code 6293_FM.fm Page iii Tuesday, November 15, 2005 7:29 PM for Teresa 6293_FM.fm Page iv Tuesday, November 15, 2005 7:29 PM 6293_FM.fm Page v Wednesday, November 16, 2005 10:12 AM Contents at a Glance Foreword xv About the Author xvii About the Technical Reviewer xix Acknowledgments xxi Introduction xxiii ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER ■CHAPTER 10 ■CHAPTER 11 ■CHAPTER 12 ■CHAPTER 13 Configuration Strategy Exception Management 45 Master Pages, Themes, and Control Skins 93 Developing Reusable Components: The Skinned Page-Message Control 111 User Management Tools and Login Controls for Forms Authentication 151 Managing Profiles 211 Building Portals Using the Web Parts Framework 249 Effective Search Tools and Techniques for Your Business Applications 327 Building a Reusable Reporting Framework 391 Web-Based Wizards: Avoiding Duplicate Data Entry 437 Uploading Files 473 Security and Encryption 495 Using HTTP Handlers: Request Processing, Image Generation, and Content Management 557 ■INDEX 613 v 6293_FM.fm Page vi Tuesday, November 15, 2005 7:29 PM Contents Foreword xv About the Author xvii About the Technical Reviewer xix Acknowledgments xxi Introduction xxiii ■CHAPTER Configuration Strategy New Configuration Tools in ASP.NET 2.0 Web Site Administration Tool ASP.NET Property Page in IIS Configuration Basics Application Settings Connection Strings 10 Configuration Guidelines 11 Strongly Typed Configuration Classes 12 The Strongly Typed Configuration Sample Application 13 Adding the Web.config File 13 The Config Class 13 Using the Config Class in Your Code 16 Error Handling in the Config Class 17 Caching Application Settings and Connection Strings 18 Custom Configuration Sections 19 Configuration Section Architecture 19 Storing Configuration Settings in a Database 33 When to Avoid the Web.config File 33 Creating a Database Table to Store Configuration Settings 34 Avoiding SQL Injection Attacks 35 Creating the DataConfig Class 37 Reading Configuration Values from the Database 37 Writing Configuration Values to the Database 38 Properties of the DataConfig Class 39 Serializing and Deserializing Objects in the Database 41 Summary 43 vi 6293_FM.fm Page vii Wednesday, November 16, 2005 10:14 AM ■C O N T E N T S ■CHAPTER Exception Management 45 Exception Management Basics 46 What Are Exceptions? 46 Handling Exceptions with the Try Catch Statement 46 Using Multiple Catch Statements 48 Catching Specific Errors Using the When Clause 51 Using the Finally Keyword 52 Throwing Exceptions 53 Creating Custom Exception Classes 54 Inner Exceptions and Exception Wrapping 57 Error Propagation 59 Global Error Handling 62 IIS versus ASP.NET Errors 62 Defining a Default Error Page for ASP.NET 62 Using an ASPX Page as the Default Error Page 63 Defining Custom Error Pages in ASP.NET 64 Defining Custom Error Pages in IIS 64 Using the Application Error Event 66 Logging Exceptions for Analysis 67 Choosing an Exception Logging Tool 67 Architecture Overview 68 Creating the ExceptionLog Table to Store Data 69 ExceptionLog Class 70 ExceptionLogCollection Class 77 ExceptionLogger Class 80 Using the ExceptionLogger Class in Your Code 84 Reviewing Exceptions Online 84 Summary 91 ■CHAPTER Master Pages, Themes, and Control Skins 93 Master Pages 94 Creating a Master Page 95 Creating Content Pages 98 Accessing Master Pages from Content Pages 101 Defining a Default Master Page for Your Application 102 Changing Master Pages in Code 103 Nested Master Pages 103 Themes and Control Skins 105 Creating a Theme 105 vii 6293_FM.fm Page viii Tuesday, November 15, 2005 7:29 PM viii ■C O N T E N T S Adding a Cascading Style Sheet to Your Theme 105 Creating Control Skins for Your Theme 106 Disabling Control Skins 107 Creating Named Control Skins for Your Theme 107 Applying Themes to Specific Pages or the Entire Application 108 Programming with Themes 108 Summary 109 ■CHAPTER Developing Reusable Components: The Skinned Page-Message Control 111 New Control Features in ASP.NET 2.0 112 Design-Time Rendering of User Controls 113 Global Tag Registration 113 Developing Server Controls with the ControlState 115 Building the ControlState Example Control 115 Creating the ControlState Demo Page 119 Viewing the ControlState Behavior in the Demo Page 120 Building a Skinned Page-Message Control 121 What Is a Skinned Control? 122 How Does the Server Control Manipulate the UserControl? 122 How Are Skinned Controls Implemented? 123 Architecture of the Skinned Page-Message Server Control 125 Storage Locations for UserControl Skins 127 Setting Up the Messaging Web Control Project 128 The Skinned Web Control Class 128 The MessageDataCollection Class 132 Defining a Standard Tag Prefix for Your Control Library 140 Design Time Rendering 140 Referencing the PageMessageControl in Your Web Project 141 Creating the PageMessageControl’s Skin Files 142 Using the PageMessageControl 147 Summary 149 ■CHAPTER User Management Tools and Login Controls for Forms Authentication 151 Forms Authentication in ASP.NET 152 Authentication Modes 153 Configuring an Authentication Mode for Your Application 155 Authentication Tickets in Concept 155 6293_FM.fm Page ix Tuesday, November 15, 2005 7:29 PM ■C O N T E N T S Authentication Cookies 155 Specifying a Default Login Page and Login Redirection URL 156 Other Forms Authentication Configuration Options 156 Manually Implementing Forms Authentication 159 Working with the Membership and Roles Objects 167 The Membership Object 167 The Roles Object 171 Programming with the Membership and Role Objects 173 Configuring the Membership and Role Providers 173 Managing Users and Security with the Web Site Administration Tool 178 Opening the Web Site Administration Tool 178 Home Tab 178 The Provider Tab 178 The Security Tab 181 Adding, Editing, and Deleting Users 189 ASP.NET 2.0 Login Controls 192 Templated Controls 193 Creating Templates 194 The Login Control 196 The LoginView Control 199 The Password Recovery Control 202 The LoginStatus Control 205 The LoginName Control 205 The CreateUserWizard Control 206 The ChangePassword Control 208 Summary 210 ■CHAPTER Managing Profiles 211 Profile Basics 212 The Profile Object 212 Enabling and Disabling Profiles 213 Defining Profile Properties in Web.config 213 Creating Profile Property Groups 214 Implementing a Profile Property Class 215 Strongly Typed Properties 218 ProfileManager Class 219 Working with Anonymous Profiles 221 Enabling Anonymous Profile Identification 222 When to Use Anonymous Identification 225 Drawbacks of Anonymous Identification 226 ix 5467_IX.fm Page 632 Wednesday, November 16, 2005 5:46 PM 632 ■I N D E X Passport Authentication 154 PasswordRecovery control 194, 202–204 passwords See also security virtual files with URL rewriting 570–583 worker 508–509, 536 ProcessRequest method 577, 588, 599 encrypting 164 Product class 234 encryption 176 Product User control 242 login form, building 160 ProductDisplayer.ascx control 238 viewing 204 products (shopping carts) PathTooLongException 49, 51 adding to 238–241 patterns, front-controller 564 migrating 247 anonymous profiles 226 ProfileAuthenticationOption enumeration 219 files, uploading 476 ProfileInfo class 219 performance See also optimization permissions 497 allowing/denying 525 behavior 525 inheritance 525 least privileged access 498 lists, adding accounts/groups 524 NTFS 522–526 personalization DateDisplayWebPart class 303 providers Web Parts 267, 288, 294–295 Personalization.Scope property 258 PersonalizationScope enumerator 258 phonetic searching 454–456 Pictures folder 591 pixels 589 planning configuration 1–8 portal frameworks 250–259 portal page display modes 253 preferences, tracking content 230 prefixes, defining tags 139–140 Previous button 448 principal 496 private variables, PageMessageControl class 136 processes 498–500, 512 HTTP Pipeline 559–563 profiles anonymous 221 avoiding nonanonymous properties 227 creating migration code 229–230 default property values 228–229 defining properties 227 enabling 222–226 dissociated 226 management creating property groups 214–215 defining properties 213–214 enabling/disabling 213 implementing property classes 215–217 overview of 212 Profile object 212–213 ProfileManager class 219–221 strongly typed properties 218–219 providers shopping carts adding products 238–241 building demo pages 241–247 clearing 246 creating 233–237 defining 237–238 migrating products 247 simple targeted advertisements 230–233 5467_IX.fm Page 633 Wednesday, November 16, 2005 5:46 PM ■I N D E X programmatic complexity 477 FileBytes 488 programming Files 485 authentication, Login control 197 FileUpload control 478 configuration strategies 1–2 Folder Properties dialog box 501 Hash class 545 HasFile 485 Master Pages, modifying 103 HttpPostedFile 479 Membership objects 173 IconData 31 Roles objects 173 InnerException 46 themes 108 LayoutEditorPart control 287 Try Catch statements 47 Login controls 197 XlsReportHandler class 574 LoginStatus 205 propagation, errors 59–61 Master 101 properties Membership objects 167 ActiveStepIndex 445 Message 46 AllowSetFocus 137 Part class 262 anonymous profiles PasswordRecovery control 202, 206, 209 avoiding nonanonymous 227 PersonalizationScope 258 default values 228–229 ProfileInfo 219 defining 227 ProfileManager 220 AppearanceEditorPart control 285 profiles BehaviorEditorPart control 286 creating groups 214–215 buttons 441 defining 213–214 CatalogZone control 278 implementing classes 215–217 ConnectionString 82 strongly typed 218–219 ConnectionsZone control 288–293 ProviderName 268 content, tracking 230 QueryString 579 ContentPlaceHolderID 99 Roles objects 171 ContentPlaceHolders 99 ShoppingCart, defining 237–238 ContinueDestinationPageUrl 208 SkinFileName 130 custom exceptions 56 Title 285 DataConfig class 39 Verbs, overriding 312 DateDisplayWebPart class 303 viewing default item 79 ViewStateCounter 117 EditorZone control 283 Web Parts EmbeddedObjects 203 configuring 283 Employee class 459 customizing 288 Enabled 268 defining 294–295 ExceptionID 90 WebPartManager control 269 ExceptionLog class 76 WebPartZone control 275 633 5467_IX.fm Page 634 Wednesday, November 16, 2005 5:46 PM 634 ■I N D E X WebZone class 273 regions Wizard control 440–442 ConnectionsZone control 288–293 WizardStep Collection Editor 443 EditorZone control 283 property page (IIS) 6–8 WebPartZone control 274 PropertyGridEditorPart control 288 RegisterStartupScript class 138 protocols registration 610 IP restrictions 514 ControlState 118 SOAP 41 custom controls 308 TDS 476 global tag 113–115 ProvideInterface function 315 user controls 304 Provider tab 3, 178 relationships, Web Part components 260 ProviderName property 268 Remember Me check box 160 providers RemoveSystemMessage method 148 connections 317 Render method, overriding 304 membership, configuring 174 rendering roles, configuring 175 ControlState 119 selecting 176 design-time of user controls 113, 140–141 ProxyWebPartManager control 272 replication, data 476 public folders, authorization 533 Report Pages, creating 571–573 Public Key Encryption 546 reports ■Q queries strings 579 XPath 26 Querystring property 579 Quick Links section 100 downloading 582 retrieving 580–583 XlsReportHandler, building 573–578 requests actual, processing 512 HTTP Handlers 558–570 applying 563–564 ■R configuring 568–570 records design 579–580 saving 472 HTTP Pipeline process 559–563 searching 471 IHttpHandler interface 564–566 recovery control 194, 202–204 mapping file extensions 566–567 RedirectFromLoginPage method 161 thumbnail generation 583–594 references 141 security context of 509–510 class libraries 27 sending initial 506 Generic Web Part class 266 virtual files (HTTP Handlers) 563 PageMessageControl class 141 parameters, RegisterStartupScript class 138 referential integrity, enforcing 475 restrictions domains 514 IP 506 5467_IX.fm Page 635 Wednesday, November 16, 2005 5:46 PM ■I N D E X rethrowing exceptions 54 files 479–480 RetrieveThumbnail method 589 creating tables 485 retrieving 490–492 databases 485–490 files from databases 490–492 reports 580–583 Return statement 53 reusable hashing classes, creating 543 reviewing exceptions 84–91 records 472 scope toggling 257 Web Parts 255 screens Rijndael algorithm 546 Add Connection 291 RoleGroup Collection Editor dialog box 201 Manage Existing Connections 290 RoleGroup templates 199, 201 No Active Connections 290 roles 496 searching accessing 166 phonetic 454–456 adding 185 records 471 authorization tickets 161 configuring 192 users 189–191 sections defining (Security Setup Wizard) 185 28 least privileged access 498 naming 185 configuration (Web.config file), encrypted 539 providers 3, 175 custom configuration 19–33 Security tab 5, 181 groups 28 user, determining 161 Messaging Components 141 viewing 164 Quick Links 100 Roles objects 167, 171–173 configuring 173–177 programming 173 RSAProtectedConfigurationProvider 538 rule access 175 Web.config file 10 security 496 adding 187 architecture 504–512 defining 181 authentication 498–504 Run As dialog box 503 authorization 498–504 runtime, HTTP Pipeline process 561 configuring 182–189, 512–536 ■S Sarbane Oxley Act 475 Save function, ExceptionLog class 76 SaveControlState method 118 saving 485–490 ControlState 118 databases 476 ASP.NET 526–536 encryption 536–541 EncryptionLibrary function 554–555 hashing 541–546 IIS 513–522 NTFS 522–526 two-way encryption 546–554 635 5467_IX.fm Page 636 Wednesday, November 16, 2005 5:46 PM 636 ■I N D E X files, uploading 475 HTTP Pipeline process 559–563 HTTP Handlers 580 property page 6–8 passwords, encrypting 176 Windows Authentication 153 terminology 496–497 Security Setup Wizard 182–189 Security tab (Web Site Administration Tool) 5, 181 JSP 561 multiple files, saving 484 SetupBreakLiteral method 607 SetupRepeaterAndPanel method 139 roles, configuring 192 shared scope (Web Parts) 255, 257 users shopping carts adding 189–190 clearing 246 deleting 192 creating 233–237 editing 191–192 defining 237–238 searching 189–191 demo pages, building 241–247 Security Wizard products Select a Master Page dialog box 99 adding 238–241 Select Case statement 446 migrating 247 Select Users or Groups dialog box 524 ShowException.aspx 87 selecting ShowExceptionList.aspx 84 exception logging tools 67–68 sidebar template 439 individual providers 180 SideBarList_ItemDataBound method 453 providers 176 SideBarTemplate 439, 451 single providers (all site management data) 179 Simple Object Access Protocol (SOAP) 41 Send function 57 simple targeted advertisements, creating 230–233 sending initial requests 506 single files, saving to databases 486 SendingMail event 204 single providers, selecting 179 SerializeToXML function 42 site maintenance 2–6 serializing objects 41 SkinFileName property 130 Server.Transfer method 579 skinned page-message controls, building 121–148 servers controls defining skinned controls 122 developing with ControlState 115–121 manipulating UserControls 122 files, moving clients 486 IIS SkinnedWebControl class 128–132 skins control 105–109, 277 disabling 107 themes 146 initializing 139 authentication 506–508 PageMessageDefault.ascx 126 authorization 506 PageMessageIcons.ascx 126 configuring security 513–522 PageMessageJScriptAlert.ascx 126 defining custom error pages 64 skipping steps 446 5467_IX.fm Page 637 Wednesday, November 16, 2005 5:46 PM ■I N D E X SOAP (Simple Object Access Protocol) 41 substitution 48 Soundex function 455 support, transactional 474 SQL Server 33 See also databases system messages 136, 148 SqlCommand object 37 System.ArithmeticException class 55 SqlException 51 System.Exception class 46 SqlMembershipProvider 167 System.IO.DirectoryNotFoundException 49 StackTrace 46 System.IO.FileNotFoundException 49 StartNavigationTemplate 439 System.IO.PathTooLongException 49 StartNextButton 441 System.Web.UI.WebControls.WebParts namespace 251 statements INSERT 461 ■T multiple Catch 48–51 tables Return 53 creating 485 Select Case 446 databases, creating 34 Try Catch 46–48 ExceptionLog, creating 69–70 static connections configuring 267, 319 defining 272 tabs Application (Web Site Administration Tool) static ConnectionString property 82 Configuration Settings tool static Log method 83 Home (Web Site Administration Tool) 178 static Web Parts 304 See also Web Parts Provider (Web Site Administration Tool) 3, 178 StepNavigationTemplate 439 StepNextButton 441 StepPreviousButton 441 Security (Web Site Administration Tool) 5, 181 adding users 189–190 steps, adding to Wizard control 442–445 configuring roles 192 storage deleting users 192 configuration settings 33–43 editing users 191–192 Sarbane Oxley Act 475 tables, creating 485 UserControl skins 127 variables, ControlState property 117 strategies, configuration 1–8 strings Base64 547 ConnectionStrings objects, caching 18 queries 579 strongly typed profile properties 218–219 strongly typed configuration classes 12–19 submitting text messages 315 searching users 189–191 tabular data stream (TDS) protocol 476 TagPrefix attribute 140 tags HTML 284 global registration 113–115 prefixes, defining 139–140 Task Manager 503 TDS (tabular data stream) protocol 476 templates content, creating 600 controls 193–196 637 5467_IX.fm Page 638 Wednesday, November 16, 2005 5:46 PM 638 ■I N D E X Convert to Template menu 450 tracking content preferences 230 converting 451 transactional support, uploading files 474 Edit Template menu 451 sidebar 439 transforming existing files (HTTP Handlers) 563 Web Configuration File 13 troubleshooting Web Parts 280 Add Connection screen 291 Wizard control 450–454 Manage Existing Connections screen 290 zones 277 text No Active Connections screen 290 Try Catch statements 46–48 entering 453 two-way encryption 546–554 HeaderText, viewing 274 types, MasterPage 101 labels, adding 166 ■U messages, entering 315 unencrypted Web.config files 539 passwords, viewing 204 Upload button 487, 490 themes 105–109 uploading files 474–492 control skins, creating 106 URL authorization modules 511 CSS, adding 105 URL rewiring, virtual files 570–583 formatting 105 user controls pages, applying 108 Catalog Parts, defining 281 programming 108 design-time rendering of 113, 140–141 skins, controls 146 inheritance 265 threads 498–500 registering 304 Throw keyword 53–54 web 609 ThumbnailHandler class 585, 591 User.IsInRole method 166 thumbnails UserControl generating 564, 583, 594 control/ID requirements for 127 viewing 598 server controls, manipulating 122 tickets 161, 497 storage 127 Title property 285 UserControl-based Web Parts 295–305 ToggleScope() method 258 user-level impersonation, configuring 534 toggling scope 257 user-management tokens 498–500 forms authentication 152–155 ToolboxData attribute 147 configuring 155–159 tools cookies 155 aspnet_regiis exe command-line utility 537 implementing 159–166 configuration (ASP.NET 2.0) 2–8 login 156 Configuration Settings login controls 192–210 exception logging 67–68 ChangePassword 208–210 Membership objects 167 CreateUserWizard 206–208 Web site Administration 176–192 5467_IX.fm Page 639 Wednesday, November 16, 2005 6:28 PM ■I N D E X creating templates 194–196 vector initialization 551 LoginName 205 verbs LoginStatus 205 adding custom to Web Parts 310–312 LoginView 199–202 Connect 320 PasswordRecovery 202–204 Verbs property, overriding 312 templates 193–194 viewing Membership objects 167–170 Add Connection screen 291 configuring 173–177 ControlState behavior 120 programming 173 exceptions 85 Roles objects 171–173 HeaderText 274 configuring 173–177 Manage Existing Connections screen 290 programming 173 No Active Connections screen 290 Web Site Administration Tool 178–192 passwords 204 products, Product User control 242 users adding 181–190 properties deleting 192 roles 164 editing 191–192 thumbnails 592, 598 roles, determining 161 usernames (in email) 204 scope (Web Parts) 255 ViewState, disabling 120 searching 189–191 ViewStateCounter property 117 Security tab (Web Site Administration Tool) virtual directories, viewing properties virtual files utility functions 457–464 HTTP handlers, processing requests 563 ■V URL rewriting 570–583 validating data in Wizard control setups 448 Visual Studio IDE 452 values ■W configuration Web applications, class libraries 27 reading from databases 37 Web Configuration File template 13 writing to databases 38 Web controls copying 471 messaging projects, configuring 128 default anonymous profile property 228–229 SkinnedWebControl class 128–132 variables classes 606 ControlStateCounter 117 Create function 25 LoadPageContent method 607 page 90 private, PageMessageControl class 136 storage, ControlState property 117 Web Parts adding 272, 280, 282 building 293–309 Catalog items 278 closing 258 configuration files, exporting 323–325 customizing 304–309 adding verbs to 310–312 connecting 313–322 639 5467_IX.fm Page 640 Wednesday, November 16, 2005 5:46 PM 640 ■I N D E X deleting 258 WebPartVerbCollection objects, creating 312 editing 284 WebPartZone control 253 framework components 250–259 WebZone class 273 functionality 266 hiding 258 Welcome introductory screen (Security Setup Wizard) 183 interfaces, IWebPart 259–293 When clause 51–52 lists 281 width ratios 589 MessageConsumer, configuring 317 Windows Authentication 153, 527 MessageProvider, configuring 315 Windows Explorer, configuring NTFS 522 personalization 267 Windows Vista 477 properties wizards configuring 283 Add Employee Wizard business objects/utility functions 457–464 customizing 288 defining 294–295 static 304 UserControl-based, implementing 295–305 zones 273, 277 creating 456–472 Security Security Setup Wizard 182–189 Wizard control Web Site Administration Tool 2–6, 176–192 creating 438–454 Web user controls 609 events 440–442 Web.config file layout 438–440 adding 13 navigation 445–450 configuration settings, avoiding saving in 33 properties 440–442 steps, adding 442–445 templates 450–454 encryption 539 profiles, defining properties 213–214 WizardStep Collection Editor 443 sections worker processes 508–509, 536 wrappers, GenericWebPart class 266 10 wrapping exceptions 57–59 WebPart class 263 WebPartAdding event 272 WebPartManager class 266 WebPartManager control 253, 267 WebPartMoving event 272 WebPartsListUserControlPath control 281 WebPartUserControl class 295, 298 ■X XlsReportHandler building 573–578 reports, retrieving 580–583 XML (Extensible Markup Language) 3, 42 XPath queries 26 5467_IX.fm Page 641 Wednesday, November 16, 2005 5:46 PM ■I N D E X ■Z zones CatalogZone control 278 ConnectionsZone control 288–293 EditorZone control 283 indexes 312 inheritance 273 LayoutEditorPart control 287 multiple 277 Web Parts 273, 277 Web Parts Framework 254, 255 WebPartZone 274 641 5467_IX.fm Page 642 Wednesday, November 16, 2005 5:46 PM 5467_IX.fm Page 643 Wednesday, November 16, 2005 5:46 PM 5467_IX.fm Page 644 Wednesday, November 16, 2005 5:46 PM 5467_IX.fm Page 645 Wednesday, November 16, 2005 5:46 PM 5467_IX.fm Page 646 Wednesday, November 16, 2005 5:46 PM forums.apress.com FOR PROFESSIONALS BY PROFESSIONALS™ JOIN THE APRESS FORUMS AND BE PART OF OUR COMMUNITY You’ll find discussions that cover topics of interest to IT professionals, programmers, and enthusiasts just like you If you post a query to one of our forums, you can expect that some of the best minds in the business—especially Apress authors, who all write with The Expert’s Voice™—will chime in to help you Why not aim to become one of our most valuable participants (MVPs) and win cool stuff? Here’s a sampling of what you’ll find: DATABASES PROGRAMMING/BUSINESS Data drives everything Share information, exchange ideas, and discuss any database programming or administration issues Unfortunately, it is Talk about the Apress line of books that cover software methodology, best practices, and how programmers interact with the “suits.” INTERNET TECHNOLOGIES AND NETWORKING WEB DEVELOPMENT/DESIGN Try living without plumbing (and eventually IPv6) Talk about networking topics including protocols, design, administration, wireless, wired, storage, backup, certifications, trends, and new technologies Ugly doesn’t cut it anymore, and CGI is absurd Help is in sight for your site Find design solutions for your projects and get ideas for building an interactive Web site JAVA SECURITY We’ve come a long way from the old Oak tree Hang out and discuss Java in whatever flavor you choose: J2SE, J2EE, J2ME, Jakarta, and so on Lots of bad guys out there—the good guys need help Discuss computer and network security issues here Just don’t let anyone else know the answers! MAC OS X TECHNOLOGY IN ACTION All about the Zen of OS X OS X is both the present and the future for Mac apps Make suggestions, offer up ideas, or boast about your new hardware Cool things Fun things It’s after hours It’s time to play Whether you’re into LEGO® MINDSTORMS™ or turning an old PC into a DVR, this is where technology turns into fun OPEN SOURCE WINDOWS Source code is good; understanding (open) source is better Discuss open source technologies and related topics such as PHP, MySQL, Linux, Perl, Apache, Python, and more No defenestration here Ask questions about all aspects of Windows programming, get help on Microsoft technologies covered in Apress books, or provide feedback on any Apress Windows book HOW TO PARTICIPATE: Go to the Apress Forums site at http://forums.apress.com/ Click the New User link ... 2005 7:29 PM Pro ASP.NET 2.0 Website Programming ■■■ Damon Armstrong 6293_FM.fm Page ii Tuesday, November 15, 2005 7:29 PM Pro ASP.NET 2.0 Website Programming Copyright © 2005 by Damon Armstrong... trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013 Phone 1-8 00-SPRINGER, fax 20 1-3 4 8-4 505, e-mail orders-ny@springer-sbm.com, or visit http://www.springeronline.com... exploration of ASP.NET 2.0, whether you are new to technology or intimately familiar with it, Damon? ??s book will be a trustworthy companion Damon shares his experience as a professional ASP.NET 2.0 software

Ngày đăng: 13/12/2013, 13:16

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan