Table Of Content01_57860x ffirs.qxd 10/4/05 9:29 PM Page iii
Professional
Web Parts and Custom Controls
with ASP.NET 2.0
Peter Vogel
01_57860x ffirs.qxd 10/4/05 9:29 PM Page i
Professional
Web Parts and Custom Controls
with ASP.NET 2.0
01_57860x ffirs.qxd 10/4/05 9:29 PM Page ii
01_57860x ffirs.qxd 10/4/05 9:29 PM Page iii
Professional
Web Parts and Custom Controls
with ASP.NET 2.0
Peter Vogel
01_57860x ffirs.qxd 10/4/05 9:29 PM Page iv
Professional Web Parts and Custom Controls
with ASP.NET 2.0
Published by
Wiley Publishing, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright © 2006 by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN-13: 978-0-7645-7860-1
ISBN-10: 0-7645-7860-X
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
1B/SR/RQ/QV/IN
Library of Congress Cataloging-in-Publication Data
Vogel, Peter, 1953–
Professional Web parts and custom controls with ASP.NET 2.0 / Peter Vogel.
p. cm.
Includes bibliographical references and index.
ISBN-13: 978-0-7645-7860-1 (paper/website : alk. paper)
ISBN-10: 0-7645-7860-X (paper/website : alk. paper)
1. Active server pages. 2. Web sites—Authoring programs. 3. Web site development. 4. Microsoft.net. 5. User interfaces
(Computer systems) 6. Computer software—Development. I. Title.
TK5105.8885.A26V64 2005
005.2 76—dc22
2005021557
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 Legal
Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or
online at http://www.wiley.com/go/permissions.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESEN-
TATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACYOR COMPLETENESS OF THE CONTENTS OF THIS
WORK AND SPECIFICALLYDISCLAIM ALLWARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF
FITNESS FOR APARTICULAR PURPOSE. NO WARRANTYMAYBE CREATED OR EXTENDED BYSALES OR PROMO-
TIONALMATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAYNOT BE SUITABLE FOR EVERY
SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN
RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONALSERVICES. IF PROFESSIONALASSISTANCE IS
REQUIRED, THE SERVICES OF ACOMPETENT PROFESSIONALPERSON SHOULD BE SOUGHT. NEITHER THE PUB-
LISHER NOR THE AUTHOR SHALLBE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGA-
NIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS ACITATION AND/OR APOTENTIALSOURCE OF
FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMA-
TION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER,
READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAYHAVE CHANGED OR DIS-
APPEARED 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 (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Trademarks:Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trade-
marks 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.
01_57860x ffirs.qxd 10/4/05 9:29 PM Page v
About the Author
Peter Vogel(MBA, MCSD) is a principal in PH&V Information Services. PH&V provides consulting ser-
vices in client/server and Web development. Its clients include Volvo, Christie Digital, the Canadian
Imperial Bank of Commerce, the Government of Ontario, and Microsoft. Peter’s white papers appeared
in the Visual Studio .NET and Office 2003 release package. Peter is the editor of the Smart Accessnews-
letter from Pinnacle Publishing, and wrote The Visual Basic Object and Component Handbook, which has
been called “The definitive guide to ‘thinking with objects.’” Peter was the founding editor of the XML
Developernewsletter. In addition to teaching for Learning Tree International, Peter wrote their ASP.NET
1.1, ASP.NET 2.0, and Technical Writing courses. His articles have appeared in every major magazine
devoted to VB-based development and can be found in the Microsoft Developer Network libraries.
Peter lives in Goderich, Ontario, Canada, and presents at conferences all over the world, frequently as
the keynote speaker.
01_57860x ffirs.qxd 10/4/05 9:29 PM Page vi
01_57860x ffirs.qxd 10/4/05 9:29 PM Page vii
Credits
Senior Acquisitions Editor Graphics and Production Specialists
Jim Minatel Denny Hager
Joyce Haughey
Development Editor Barbara Moore
Sara Shlaer Alicia South
Technical Editors Quality Control Technicians
Derek Comingore John Greenough
Richard Purchas Leeann Harney
Copy Editor Media Development Specialists
Nancy Rapoport Angela Denny
Kate Jenkins
Editorial Manager Steve Kudirka
Mary Beth Wakefield Kit Malone
Travis Silvers
Production Manager
Tim Tate Media Development Coordinator
Laura Atkinson
Vice President and Executive Group Publisher
Richard Swadley Proofreading and Indexing
TECHBOOKS Production Services
Vice President and Executive Publisher
Joseph B. Wikert
01_57860x ffirs.qxd 10/4/05 9:29 PM Page viii