professional asp.net 3.5 sp1 edition

1.9K 567 0
professional asp.net 3.5 sp1 edition

Đ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.it-ebooks.info Evjen ffirs.tex V3 - 02/17/2009 12:21am Page i Professional ASP.NET 3.5 SP1 Edition In C# and VB www.it-ebooks.info Evjen ffirs.tex V3 - 02/17/2009 12:21am Page ii www.it-ebooks.info Evjen ffirs.tex V3 - 02/17/2009 12:21am Page iii Professional ASP.NET 3.5 SP1 Edition In C# and VB Bill Evjen Scott Hanselman Devin Rader Wiley Publishing, Inc. www.it-ebooks.info Evjen ffirs.tex V3 - 02/17/2009 12:21am Page iv Professional ASP.NET 3.5 SP1 Edition: In C# and VB Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright  2009 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-47826-4 Manufactured in the United States of America 10987654321 Library of Congress Cataloging-in-Publication Data Evjen, Bill. Professional ASP.NET 3.5 SP1 edition : in C# and VB / Bill Evjen, Scott Hanselman, Devin Rader. p. cm. Includes index. ISBN 978-0-470-47826-4 (cloth/cd-rom) 1. Active server pages. 2. Microsoft .NET. 3. C# (Computer program language) 4. Microsoft Visual BASIC. I. Hanselman, Scott. II. Rader, Devin, 1976- III. Title. TK5105.8885.A26E96 2009 006.7’882 — dc22 2009004158 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions . Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. www.it-ebooks.info Evjen fauth.tex V3 - 02/17/2009 12:13am Page v About the Authors Bill Evjen is an active proponent of .NET technologies and community-based learning initiatives for .NET. He has been actively involved with .NET since the first bits were released in 2000. In the same year, Bill founded the St. Louis .NET User Group (www.stlnet.org), one of the world’s first such groups. Bill is also the founder and former executive director of the International .NET Association (www.ineta.org), which represents more than 500,000 members worldwide. Based in St. Louis, Missouri, USA, Bill is an acclaimed author and speaker on ASP.NET and XML Web Services. He has authored or co-authored more than fifteen books including Professional C# 2008, Professional VB 2008, ASP.NET Professional Secrets, XML Web Services for ASP.NET,andWeb Services Enhancements: Understanding the WSE for Enterprise Applications (all published by Wiley Publishing, Inc.). In addition to writing, Bill is a speaker at numerous conferences, including DevConnections, VSLive, and TechEd. Along with these items, Bill works closely with Microsoft as a Microsoft Regional Director and an MVP. Bill is the Global Head of Platform Architec- ture for Lipper (www.lipperweb.com), as part of Thomson Reuters, the international news and financial services company. He graduated from Western Washington University in Bellingham,Washington, with a Russian language degree. When he isn’t tinkering on the computer, he can usually be found at his summer house in Toivakka, Finland. You can reach Bill at bill.evjen.public@gmail.com Scott Hanselman works for Microsoft a s a Senior Program Manager in the Developer Division, aim- ing to spread the good word about developing software, most often on the Microsoft stack. Before this he worked in eFinance for 6+ years and before that he was a Principal Consultant a Microsoft Partner for nearly 7 years. He was also involved in a few things like the MVP and RD programs and will speak about computers (and other passions) whenever someone will listen to him. He blogs at http://www.hanselman.com and podcasts at http://www.hanselminutes.com and contributes to http://www.asp.net, http://www.windowsclient.net, and http://www.silverlight.net. Devin Rader is a Product Manager on the Infragistics Web Client team, responsible for leading the creation of Infragistics ASP.NET and Silverlight products. Devin is also an active proponent and mem- ber of the .NET developer community, being a co-founder of the St. Louis .NET User Group, an active member of the New Jersey .NET User Group, a former board member of the International .NET Associ- ation (INETA), and a regular speaker at user groups. He is also a contributing author on the Wrox title Silverlight 1.0 and a technical editor for several other Wrox publications and has written columns for ASP.NET Pro magazine, as well as .NET technology articles for MSDN Online. You can find more of Devin’s musings at www.geekswithblogs.com/devin. www.it-ebooks.info Evjen fauth.tex V3 - 02/17/2009 12:13am Page vi www.it-ebooks.info Evjen fcredit.tex V3 - 02/17/2009 12:14am Page vii Credits Development Editor Lori Cerreto Technical Editor Alexei Gorkov Production Editor Daniel Scribner Copy Editor Nancy Rapoport Editorial Manager Mary Beth Wakefield Production Manager Tim Tate Vice President and Executive Group Publisher Richard Swadley Vice President and Executive Publisher Barry Pruett Associate Publisher Jim Minatel Project Coordinator, Cover Lynsey Stanford Proofreader Publication Services, Inc. Indexer J&JIndexing www.it-ebooks.info Evjen fcredit.tex V3 - 02/17/2009 12:14am Page viii www.it-ebooks.info Evjen fack.tex V3 - 02/17/2009 12:14am Page ix Acknowledgments I have said it before and I’ll say it again: Writing a book may seem like the greatest of solo endeavors, but it requires a large team of people working together to get technical books out the door and this book is no exception. First and foremost, I would like to thank Jim Minatel of Wrox for giving me the opportunity to write the original ASP.NET book, which then led to this special edition. There is nothing better than getting the opportunity to write about your favorite topic for the world’s best publisher! Besides Jim, I worked with Adaobi Obi Tulton on the first edition and then Lori Cerreto as development editor and Nancy Rapoport as copy editor on this SP1 Edition. Without their efforts, this book would not have happened. I worked closely with Scott Hanselman and Devin Rader on the original edition of this book, and these guys deserve a lot of thanks. I appreciate your help (and Devin, I appreciate the new appendix for this edition) and advice throughout the process. Thanks guys! Finally, thanks to my entire family. Book writing is a devil in disguise as it is something that I love to do but at the same time, takes way too much time away from my family. Thanks to my family for putting up with this and for helping me get these books out the door. I love you all. — Bill Evjen www.it-ebooks.info [...]... Older ASP.NET Projects 1631 Migrating Is Not Difficult 1631 Running Multiple Versions of the Framework Side by Side Upgrading Your ASP.NET Applications 1632 1632 When Mixing Versions — Forms Authentication Upgrading — ASP.NET Reserved Folders ASP.NET 3.5 Pages Come as XHTML No Hard-Coded js Files in ASP.NET 3.5 Converting ASP.NET 1.x Applications in Visual Studio 2008 Migrating from ASP.NET 2.0 to 3.5. .. 5/6 and ASP.NET IIS 7 and ASP.NET ASP.NET Request Processing 1259 1260 1261 HttpModules 1262 HttpHandlers 1272 Summary 1279 Chapter 28: Using Business Objects 1281 Using Business Objects in ASP.NET 3.5 1281 Creating Precompiled NET Business Objects Using Precompiled Business Objects in Your ASP.NET Applications COM Interop: Using COM Within NET The Runtime Callable Wrapper Using COM Objects in ASP.NET. .. V3 - 02/17/2009 Professional ASP.NET 3.5 SP1 Edition In C# and VB www.it-ebooks.info 12:20am Page xi Evjen www.it-ebooks.info halftitle.tex V3 - 02/17/2009 12:20am Page xii Evjen ftoc.tex V3 - 02/17/2009 12:17am Contents Introduction xxxvii Chapter 1: Application and Page Frameworks 1 Application Location Options 1 Built-In Web Server IIS FTP Web Site Requiring FrontPage Extensions The ASP.NET Page Structure... 840 849 850 857 864 Summary 865 Chapter 19: ASP.NET AJAX 867 Understanding the Need for AJAX 867 Before AJAX AJAX Changes the Story 868 868 ASP.NET AJAX and Visual Studio 2008 871 Client-Side Technologies Server-Side Technologies Developing with ASP.NET AJAX 872 873 874 ASP.NET AJAX Applications 874 Building a Simple ASP.NET Page without AJAX Building a Simple ASP.NET Page with AJAX xxiv www.it-ebooks.info... 730 731 Summary 732 Chapter 16: Membership and Role Management 733 Authentication Authorization ASP.NET 3.5 Authentication 734 734 734 Setting Up Your Web Site for Membership Adding Users Asking for Credentials Working with Authenticated Users Showing the Number of Users Online Dealing with Passwords ASP.NET 3.5 Authorization 734 737 752 760 762 764 769 Using the LoginView Server Control Setting Up Your... Data Services in ASP.NET Summary 1435 1436 1438 1441 1445 1445 1446 1448 1452 xxxi www.it-ebooks.info Page xxxi Evjen ftoc.tex V3 - 02/17/2009 Contents Chapter 33: Localization 1453 Cultures and Regions 1453 Understanding Culture Types The ASP.NET Threads Server-Side Culture Declarations Client-Side Culture Declarations Translating Values and Behaviors 1454 1455 1458 1459 1461 ASP.NET 3.5 Resource Files... The ASP.NET Page Structure Options Inline Coding Code-Behind Model 2 3 3 5 5 7 9 ASP.NET 3.5 Page Directives 11 @Page @Master @Control @Import @Implements @Register @Assembly @PreviousPageType @MasterType @OutputCache @Reference 12 15 17 18 20 20 21 21 21 22 22 ASP.NET Page Events Dealing with PostBacks Cross-Page Posting ASP.NET Application Folders 23 24 25 32 \App_Code Folder \App_Data Folder \App_Themes... Page xvi Evjen ftoc.tex V3 - 02/17/2009 12:17am Contents Container-Specific Master Pages Event Ordering Caching with Master Pages ASP.NET AJAX and Master Pages Summary 247 248 249 249 252 Chapter 6: Themes and Skins 253 Using ASP.NET Themes 253 Applying a Theme to a Single ASP.NET Page Applying a Theme to an Entire Application Removing Themes from Server Controls Removing Themes from Web Pages Understanding... Session State Compilation Configuration Browser Capabilities Custom Errors Authentication Anonymous Identity Authorization Locking-Down Configuration Settings ASP.NET Page Configuration Include Files Configuring ASP.NET Runtime Settings Configuring the ASP.NET Worker Process Storing Application-Specific Settings Programming Configuration Files Protecting Configuration Settings Editing Configuration Files 1486... Connecting Web Parts on an ASP.NET Page Understanding the Difficulties in Dealing with Master Pages When Connecting Web Parts 825 828 830 833 Summary 834 Chapter 18: HTML and CSS Design with ASP.NET 835 Caveats HTML and CSS Overview 836 836 Introducing CSS Creating Style Sheets CSS Rules CSS Inheritance Element Layout and Positioning Working with HTML and CSS in Visual Studio ASP.NET 2.0 CSS–Friendly . Controls 35 0 DropDownList, ListBox, RadioButtonList, and CheckBoxList 35 0 TreeView 35 0 Ad Rotator 35 1 Menu 35 1 Inline Data-Binding Syntax 35 2 Data-Binding Syntax Changes 35 3 XML Data Binding 35 3 Expressions. 252 Chapter 6: Themes and Skins 2 53 Using ASP. NET Themes 2 53 Applying a Theme to a Single ASP. NET Page 2 53 Applying a Theme to an Entire Application 255 Removing Themes from Server Controls 256 Removing. Builders 35 4 Summary 35 9 Chapter 8: Data Management with ADO .NET 36 1 Basic ADO .NET Features 36 2 Common ADO .NET Tasks 36 2 Basic ADO .NET Namespaces and Classes 36 7 Using the Connection Object 36 8 Using

Ngày đăng: 05/05/2014, 12:11

Từ khóa liên quan

Mục lục

  • Professional ASP.NET 3.5 SP1 Edition In C# and VB

  • Contents

  • Introduction

  • Chapter 1: Application and Page Frameworks

  • Chapter 2: ASP.NET Server Controls and Client-Side Scripts

  • Chapter 3: ASP.NET Web Server Controls

  • Chapter 4: Validation Server Controls

  • Chapter 5: Working with Master Pages

  • Chapter 6: Themes and Skins

  • Chapter 7: Data Binding in ASP.NET 3.5

  • Chapter 8: Data Management with ADO.NET

  • Chapter 9: Querying with LINQ

  • Chapter 10: Working with XML and LINQ to XML

  • Chapter 11: IIS7

  • Chapter 12: Introduction to the Provider Model

  • Chapter 13: Extending the Provider Model

  • Chapter 14: Site Navigation

  • Chapter 15: Personalization

  • Chapter 16: Membership and Role Management

  • Chapter 17: Portal Framework and Web Parts

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

Tài liệu liên quan