SAMS Teach Yourself ASP.NET Ajax in 24 Hours (2009).pdf
(
3925 KB
)
Pobierz
664838430 UNPDF
Joydip Kanjilal and
Sriram Putrevu
Sams
Teach Yourself
ASP.NET
Ajax
24
Hours
800 East 96th Street, Indianapolis, Indiana, 46240 USA
in
Sams Teach Yourself ASP.NET Ajax in 24 Hours
Copyright © 2009 by Pearson Education, Inc.
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or
transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without
written permission from the publisher. No patent liability is assumed with respect to the use of
the information contained herein. Although every precaution has been taken in the preparation of
this book, the publisher and authors assume no responsibility for errors or omissions. Nor is any
liability assumed for damages resulting from the use of the information contained herein.
ISBN-13: 978-0-672-32967-8
ISBN-10: 0-672-32967-0
The Library of Congress Cataloging-in-Publication Data is on file.
Printed in the United States of America
First Printing July 2008
Trademarks
All terms mentioned in this book that are known to be trademarks or service marks have been
appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use
of a term in this book should not be regarded as affecting the validity of any trademark or service
mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and accurate as possible, but no war-
ranty or fitness is implied. The information provided is on an “as is” basis. The authors and the
publisher shall have neither liability nor responsibility to any person or entity with respect to any
loss or damages arising from the information contained in this book.
Bulk Sales
Sams Publishing offers excellent discounts on this book when ordered in quantity for bulk pur-
chases or special sales. For more information, please contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside the U.S., please contact
International Sales
international@pearson.com
Editor-in-Chief
Karen Gettman
Executive Editor
Neil Rowe
Development
Editor
Mark Renfrow
Managing Editor
Kristy Hart
Project Editor
Betsy Harris
Copy Editor
Water Crest
Publishing, Inc.
Indexer
Lisa Stumpf
Proofreaders
San Dee Phillips
Language Logistics
Technical Editor
J. Boyd Nolan
Publishing
Coordinator
Cindy Teeters
Book Designer
Gary Adair
Compositor
Bronkella Publishing
Contents at a Glance
Part I: Getting Started with Ajax
HOUR 1
Getting Started with ASP.NET Ajax
.................................................
3
2
Understanding the ASP.NET Ajax Architecture
................................
23
3
Working with the
XMLHttpRequest
Object
.......................................
37
4
Understanding Client-Side Scripting
..............................................
53
5
Data Communication with the Server
...........................................
69
6
Working with the Microsoft Ajax Library
.......................................
85
Part II: Working with Ajax
HOUR 7
Using ASP.NET Ajax Server Extensions
.........................................
103
8
Working with the
UpdatePanel
and
UpdateProgress
Controls
..........
117
9
Working with the
ScriptManager
and
Timer
Controls
.....................
135
10
Working with Ajax Control Toolkit—Part I
....................................
147
11
Working with Ajax Control Toolkit—Part II
...................................
161
12
ASP.NET Ajax and Web Parts
......................................................
175
13
ASP.NET Ajax Client Life Cycle Events
..........................................
195
Part III: Advanced Concepts
HOUR 14
Working with Web Services Using Ajax
........................................
209
15
Working with Authentication Service Using Ajax
...........................
221
16
Working with Profile Service Using Ajax
.......................................
235
17
Extending the Ajax Library
........................................................
249
18
Implementing Localization and Globalization Using ASP.NET Ajax
..
259
19
Debugging and Tracing in ASP.NET Ajax
.....................................
273
20
The ASP.NET Ajax Futures CTP
...................................................
285
iv
Sams Teach Yourself ASP.NET Ajax in 24 Hours
Part IV: Using ASP.NET Ajax to Build a Sample E-Commerce Application
HOUR 21
Introducing e-Commerce and Designing the Application
................
299
22
Setting Up the Application
.........................................................
317
23
Searching and Shopping for the Products
.....................................
343
24
Generating and Managing Orders
...............................................
375
Index
.....................................................................................
393
Table of Contents
Part I: Getting Started with Ajax
HOUR 1:
Getting Started with ASP.NET Ajax 3
Things You Should Know
........................................................................
4
Ajax—A Paradigm Shift
........................................................................
4
Technologies That Make Up Ajax
............................................................
5
The Pros and Cons of Using Ajax
............................................................
6
The Downsides of Using Ajax
..............................................................
6
Looking Back in Time
............................................................................
7
What Is ASP.NET Ajax?
..........................................................................
7
Other Ajax Frameworks
..........................................................................
8
Goals of ASP.NET Ajax
..........................................................................
9
Installing Ajax
......................................................................................
9
Setting Up Your Environment
............................................................
10
Installing ASP.NET Ajax
....................................................................
10
Creating Your First Ajax Application
......................................................
13
Creating a Generic Function for Instantiating the
XMLHttpRequest
Object
......
14
How Does It Work?
..........................................................................
15
What Does the Previous Code Do?
......................................................
17
Summary
..........................................................................................
19
Workshop
..........................................................................................
20
Quiz
..............................................................................................
20
Answers
........................................................................................
20
HOUR 2:
Understanding the ASP.NET Ajax Architecture 23
Introducing ASP.NET
............................................................................
23
A Quick Look at the ASP.NET Architecture
..............................................
24
The Application Life Cycle Events
......................................................
24
The Page Life Cycle Events
................................................................
25
Plik z chomika:
krupix.one
Inne pliki z tego folderu:
Apress Applied ASP.NET 4 in Context (2011).pdf
(62145 KB)
Addison-Wesley Essential ASP.NET with Examples in Visual Basic .NET (2003).pdf
(6439 KB)
Addison-Wesley Advanced ASP.NET AJAX Server Controls, For .NET Framework 3.5 (2009).pdf
(5332 KB)
Addison-Wesley Maximizing ASP.NET, Real World Object-Oriented Development (2005).pdf
(5641 KB)
Addison-Wesley Professional C# Developer's Guide to ASP.NET XML and ADO.NET (2002).pdf
(4564 KB)
Inne foldery tego chomika:
ASPNET_2
Zgłoś jeśli
naruszono regulamin