Liberty - Learning ASP.NET 3.5 2e (O.Reilly, 2008).pdf

(17562 KB) Pobierz
426750578 UNPDF
426750578.003.png
426750578.004.png
SECOND EDITION
Learning ASP.NET 3.5
Jesse Liberty, Dan Hurwitz, and Brian MacDonald
Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo
426750578.005.png
Learning ASP.NET 3.5, Second Edition
by Jesse Liberty, Dan Hurwitz, and Brian MacDonald
Copyright © 2008 Jesse Liberty, Dan Hurwitz, and Brian MacDonald. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles ( safari.oreilly.com ). For more information, contact our
corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com .
Editor: John Osborn
Production Editor: Sumita Mukherji
Proofreader: Sumita Mukherji
Indexer: Angela Howard
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Jessamyn Read
Printing History:
September 2007: First Edition.
July 2008: Second Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Learning ASP.NET 3.5 , Second Edition, the image of a monkfish, and related trade
dress are trademarks of O’Reilly Media, Inc.
.NET is a registered trademark of Microsoft Corporation.
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 O’Reilly Media, Inc. was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors
assume no responsibility for errors or omissions, or for damages resulting from the use of the
information contained herein.
This book uses RepKover, a durable and flexible lay-flat binding.
ISBN: 978-0-596-51845-5
[M]
426750578.006.png
Table of Contents
Preface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
1. Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
Hello World
2
Creating a New Web Site
2
Creating HelloWorld
6
Making the HelloWorld Web Site Interactive
8
What You Just Did
13
Summary
13
Brain Builder
15
Quiz
15
Exercise
15
2. Building Web Applications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
Mastering Web Site Fundamentals
17
The Page
17
Controls
19
Code-Behind Files
22
Events and Postbacks
22
Synchronous and Asynchronous Postbacks
23
The Page Load event and synchronous postback
27
Adding asynchronous postbacks
29
Using Controls
35
Organizing the Properties Window
35
Finding properties with IntelliSense
35
Basic Controls
36
Creating Tables
39
iii
426750578.001.png 426750578.002.png
 
Zgłoś jeśli naruszono regulamin