Addison-Wesley Advanced ASP.NET AJAX Server Controls, For .NET Framework 3.5 (2009).pdf

(5332 KB) Pobierz
1015599353.021.png
Advanced
ASP.NET AJAX
Server Controls
For .NET
Framework 3.5
Adam Calderon
Joel Rumerman
Upper Saddle River, NJ Boston Indianapolis San Francisco
New York Toronto Montreal London Munich Paris
Madrid Cape Town Sydney Tokyo Singapore Mexico City
1015599353.022.png 1015599353.023.png 1015599353.024.png 1015599353.001.png 1015599353.002.png 1015599353.003.png 1015599353.004.png 1015599353.005.png 1015599353.006.png 1015599353.007.png 1015599353.008.png 1015599353.009.png 1015599353.010.png 1015599353.011.png 1015599353.012.png 1015599353.013.png 1015599353.014.png
Many of the designations used by manufacturers and
sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this
book, and the publisher was aware of a trademark
claim, the designations have been printed with initial
capital letters or in all capitals.
The .NET logo is either a registered trademark or
trademark of Microsoft Corporation in the United
States and/or other countries and is used under license
from Microsoft.
The authors and publisher have taken care in the
preparation of this book, but make no expressed or
implied warranty of any kind and assume no respon-
sibility for errors or omissions. No liability is assumed
for incidental or consequential damages in connection
with or arising out of the use of the information or pro-
grams contained herein.
The publisher offers excellent discounts on this book
when ordered in quantity for bulk purchases or special
sales, which may include electronic versions and/or
custom covers and content particular to your business,
training goals, marketing focus, and branding inter-
ests. For more information, please contact:
U.S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For sales outside the United States please contact:
International Sales
international@pearson.com
Visit us on the web: www.informit.com/aw
Library of Congress Cataloging-in-Publication Data:
Calderon, Adam, 1964-
Advanced ASP.Net Ajax server controls for .Net 3.5
/ Adam Calderon, Joel Rumerman.
p. cm.
ISBN 0-321-51444-0 (pbk. : alk. paper) 1. Internet
programming. 2. Active server pages. 3. Microsoft
.NET. 4. Ajax (Web site development technology) 5.
Web servers. I. Rumerman, Joel, 1980- II. Title.
Editor-in-Chief
Karen Gettman
Acquisitions Editor
Joan Murray
Development Editors
Sheri Cain
Chris Zahn
Managing Editor
Kristy Hart
Project Editor
Jovana San Nicolas-Shirley
Copy Editor
Keith Cline
Indexer
WordWise Publishing Services
Proofreader
Geneil Breeze
Publishing Coordinator
Olivia Basegio
Cover Designer
Chuti Prasertsith
Compositor
Bronkella Publishing
QA76.625.C34 2008
006.7’882—dc22
2008013462
Copyright © 2009 Pearson Education, Inc.
All rights reserved. Printed in the United States of
America. This publication is protected by copyright,
and permission must be obtained from the publisher
prior to any prohibited reproduction, storage in a
retrieval system, or transmission in any form or by any
means, electronic, mechanical, photocopying, record-
ing, or likewise. For information regarding permis-
sions, write to:
Pearson Education, Inc.
Rights and Contracts Department
501 Boylston Street, Suite 900
Boston, MA 02116
Fax (617) 671 3447
ISBN-13: 978-0-321-51444-8
ISBN-10: 0-321-51444-0
Text printed in the United States on recycled paper at
RR Donnelly in Crawfordsville, Indiana.
First printing: July 2008
1015599353.015.png
To my wife, Gayle, and my son, Derek: You were already accustomed to my
hard work ethic, but I think writing this book took things to the next level.
Your patience and understanding during this long journey provided the
foundation I needed to get through the rough times. I am truly blessed to
have the both of you in my life.
—Adam
To my wife, Stacey: You make even the hard days easy. And to my parents: I
truly am 50 percent of each of you.
—Joel
1015599353.016.png
viii
Contents
Contents
Foreword
xxv
Preface
xxvii
Acknowledgments
xxxv
About the Authors
xxxix
I
Client Code
1
Programming with JavaScript
3
Generally JavaScript
4
JavaScript Introduction
4
Language Attributes
4
Primitive Data Types
6
Strings
8
Objects
9
Variables and Function Arguments
16
Error Handling
25
Delayed Code Execution Using Timeouts and Intervals
30
Object-Oriented JavaScript Programming
39
Abstract Data Types
40
Inheritance
46
2
Microsoft AJAX Library Programming
51
Extending the Built-In JavaScript Types
52
Booleans
52
Dates and Numbers
53
1015599353.017.png 1015599353.018.png 1015599353.019.png 1015599353.020.png
Zgłoś jeśli naruszono regulamin