ASP.Net 4 Unleashed - Walther_ Stephen.pdf

(36401 KB) Pobierz
798981633.013.png
Stephen Walther
Kevin Hoffman
Nate Dudek
ASP.NET UNLEASHED
800 East 96th Street, Indianapolis, Indiana 46240 USA
798981633.014.png 798981633.015.png 798981633.016.png 798981633.001.png 798981633.002.png 798981633.003.png 798981633.004.png 798981633.005.png 798981633.006.png
 
ASP.NET 4 Unleashed
Copyright
Editor-in-Chief
Karen Gettman
2011 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-33112-1
ISBN-10: 0-672-33112-8
Library of Congress Cataloging-in-Publication Data:
Walther, Stephen.
ASP.NET 4.0 unleashed / Stephen Walther, Kevin Hoffman, Nate Dudek.
p. cm.
Includes index.
ISBN 978-0-672-33112-1
1. Active server pages. 2. Web sites—Design. 3. Web site development. 4.
Microsoft .NET. I. Hoffman, Kevin. II. Dudek, Nate. III. Title.
TK5105.8885.A26W3517 2011
006.7’882—dc22
©
Executive Editor
Neil Rowe
Development Editor
Mark Renfrow
Managing Editor
Kristy Hart
Project Editors
Jovana San Nicolas-
Shirley and
Alexandra Maurer
Copy Editor
Apostrophe Editing
Services
Indexer
WordWise Publishing
Services LLC
2010034058
Printed in the United States of America
First Printing September 2010
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 as accurate as possi-
ble, but no warranty 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 purchases or special sales. For more information, please contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside of the U.S., please contact
International Sales
international@pearson.com
Proofreader
Debbie Williams
Technical Editor
J. Boyd Nolan
Publishing
Coordinator
Cindy Teeters
Cover Designer
Gary Adair
Composition
Gloria Schurick
798981633.007.png 798981633.008.png
Contents at a Glance
Introduction....................................................................................................1
Part I
Building ASP.NET Pages
1
Overview of the ASP.NET Framework.............................................................5
2
Using the Standard Controls ........................................................................59
3
Using the Validation Controls....................................................................121
4
Using the Rich Controls .............................................................................179
Part II
Designing ASP.NET Websites
5
Designing Websites with Master Pages.......................................................237
6
Designing Websites with Themes ...............................................................269
7
Creating Custom Controls with User Controls..........................................299
Part III
Performing Data Access
8
Overview of Data Access.............................................................................337
9
Using the SqlDataSource Control...............................................................379
10
Using List Controls .....................................................................................439
11
Using the GridView Control.......................................................................485
12
Using the DetailsView and FormView Controls.........................................567
13
Using the Repeater and DataList Controls .................................................623
14
Using the ListView and DataPager Controls .............................................661
15
Using the Chart Control.............................................................................689
16
Using the QueryExtender Control .............................................................711
Part IV:
Building Components
17
Building Components.................................................................................721
18
Using the ObjectDataSource Control .........................................................771
19
Building Data Access Components with ADO.NET ...................................843
20
Data Access with LINQ to SQL ...................................................................935
21
Data Access with WCF Data Services .......................................................1001
Part V
Site Navigation
22
Using the Navigation Controls.................................................................1011
23
Using Site Maps.........................................................................................1083
24
Advanced Navigation................................................................................1123
25
Using the ASP.NET URL Routing Engine..................................................1137
798981633.009.png 798981633.010.png
ASP.NET 4 Unleashed
iv
Part VI
Security
26
Using the Login Controls .........................................................................1147
27
Using ASP.NET Membership .....................................................................1205
Part VII
Building ASP.NET Applications
28
Maintaining Application State .................................................................1263
29
Caching Application Pages and Data . .....................................................1335
30
Localizing Applications for Multiple Languages . ....................................1419
31
Working with the HTTP Runtime . ..........................................................1453
32
Building Dynamic Data Applications. .....................................................1491
33
Building ASP.NET MVC Applications . .....................................................1501
34
Configuring Applications .........................................................................1511
35
Deploying ASP.NET Web Applications . ...................................................1565
Part VIII
Custom Control Building
36
Building Custom Controls........................................................................1575
37
Building Templated Databound Controls . ..............................................1647
Part IX
ASP.NET AJAX
38
Using Server-Side ASP.NET AJAX . ............................................................1673
39
Using the ASP.NET AJAX Control Toolkit . ..............................................1733
40
Client-Side AJAX with jQuery . ................................................................1769
Index .........................................................................................................1783
798981633.011.png 798981633.012.png
Zgłoś jeśli naruszono regulamin