Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

ASP.NET Developer's JumpStart
Nội dung xem thử
Mô tả chi tiết
• Table of Contents
• Index
ASP.NET Developer's JumpStart
By Paul D. Sheriff, Ken Getz
Publisher: Addison Wesley
Pub Date: April 08, 2002
ISBN: 0-672-32357-5
Pages: 672
The purpose of ASP.NET JumpStart is to show readers the practical applications of .NET and ASP.NET by
illustrating how to build Web-based applications using Web Forms and Web Services. Emphasis will be
on good programming standards and practices. The reader will be taken from an introduction of the VB
.NET language to intermediate topics through a step-by-step approach, which gives the reader the
• Table of Contents
• Index
ASP.NET Developer's JumpStart
By Paul D. Sheriff, Ken Getz
Publisher: Addison Wesley
Pub Date: April 08, 2002
ISBN: 0-672-32357-5
Pages: 672
The purpose of ASP.NET JumpStart is to show readers the practical applications of .NET and ASP.NET by
illustrating how to build Web-based applications using Web Forms and Web Services. Emphasis will be
on good programming standards and practices. The reader will be taken from an introduction of the VB
.NET language to intermediate topics through a step-by-step approach, which gives the reader the
opportunity to try out the practices presented in each chapter.
•
Table of
Contents
• Index
ASP.NET Developer's JumpStart
By Paul D. Sheriff, Ken Getz
Publisher: Addison Wesley
Pub Date: April 08, 2002
ISBN: 0-672-32357-5
Pages: 672
Copyright
About the Authors
Acknowledgments
Introduction
What Is the Purpose of This Book?
Who Should Read This Book?
Prerequisites
Part I. Introduction to Microsoft .NET and ASP.NET
Chapter 1. Getting Started with the Sample Application
Preparing for the Sample Application
Introducing the Sample Application
Summary
Chapter 2. Introduction to Microsoft .NET
NET and XML
Overview of the .NET Framework
Types of Applications You Can Build
Migrating to .NET
Benefits of Using the .NET Framework
Summary
Chapter 3. Introduction to Visual Studio .NET
Configuring Visual Studio .NET
Project Templates
Visual Studio Integrated Development Environment (IDE)
Using Help
Types of Windows
Using the Editor
Summary
Chapter 4. Overview of .NET Framework Classes
.NET Framework Namespaces
The System Namespace
The System.Data Namespace
The System.IO Namespace
The System.Text Namespace
The System.Collections Namespace
The System.Web.Services Namespace
The System.Xml Namespace
Summary
Chapter 5. Introduction to Internet Programming
Internet Basics
HTML Basics
Creating Web Sites Before ASP.NET
Web Sites Created Using ASP.NET
Summary
Chapter 6. Introduction to ASP.NET
Overview of ASP.NET
Introducing Web Form Controls
How Web Forms Work
Internet Information Server (IIS) Objects
Creating User Controls
Creating the Northwind Solution
Summary
Chapter 7. Working with ASP.NET and VB .NET
Event-Handling Basics
Data Types
Creating Your Own Procedures
Summary
Chapter 8. Validation Controls
Requiring Data Entry
Checking a Range
Validating Expressions
Creating Your Own Validation
Summarizing Validation Messages
Comparing Values
Summary
Chapter 9. Debugging in Visual Studio .NET
Using the Debugger
Introducing the Debugging Tools
Useful Versus .NET Debugging Tools
Using the Debug Class
Conditional Compilation
Summary
Part II. Data Handling
Chapter 10. Introduction to ADO.NET
Using ADO.NET Classes
ADO.NET Namespaces
Getting Started with ADO.NET
Benefits of ADO.NET
Summary
Chapter 11. Data Binding on Web Forms
Creating a Sample Page
Displaying Your Data
Summary
Chapter 12. Error Handling
The Promise of Structured Exception Handling
Using Exception Handling
Working with Specific Exceptions
Throwing Exceptions
Creating an Error Page
Summary
Chapter 13. ADO.NET Connection and Command Objects
Providing ADO.NET Connection Information
Using ADO.NET Connection Objects
Updating Data Using a Command Object
Summary
Chapter 14. Working with Data
Using the DataReader Object
Retrieving Datasets Generically
Working with Relations in a Dataset
Summary
Chapter 15. Using Stored Procedures with ADO.NET
Setting Up the Sample Stored Procedures
The OleDb Namespace and Stored Procedures
The SqlClient Namespace and Stored Procedures
Summary
Chapter 16. Using the DataGrid Control
Adding Features to the DataGrid Control
Loading the DataGrid Control with Data
Formatting Numeric Columns
Enabling Paging
Selecting a Row
Sorting Columns
Summary
Chapter 17. Editing Data Using the DataGrid Control
Project Setup
Editing Data Using Links
Editing Data on the Grid
Adding a Template Column
Adding and Deleting Rows
Summary
Chapter 18. Using the Repeater Control
How Does the Repeater Control Work?
Creating a Repeater
More Advanced Repeater Features
Summary
Chapter 19. Using the DataList Control
Project Setup
Adding the Control's Data Source
Adding the Full ItemTemplate
Using the DataList Control's Properties
Adding the EditItemTemplate Section
Adding Event-Handling Code
Summary
Part III. Web Development Techniques
Chapter 20. Using Crystal Reports
Creating a Report
Viewing the Report
Summary
Chapter 21. Creating User Controls
Creating a Header Control
Creating a Navigation Control
Creating More Complex User Controls
Defining and Raising Events
Summary
Chapter 22. Rich ASP.NET Controls
The CheckBoxList and RadioButtonList Controls
The Calendar Control
The AdRotator Control
The Literal Control
The PlaceHolder Control
Summary
Chapter 23. State Management in ASP.NET
State Management Techniques in Brief
Using the Session Object
Using Cookies
Using the ViewState Property
Cookieless Sessions
ASP.NET State Service
Automatic SQL Server State Management
Summary
Chapter 24. Introduction to Web Security
Forms-Based Authentication
Supporting Authorization
Summary
Chapter 25. Creating Mobile Web Applications
Introducing the Microsoft Mobile Internet Toolkit
Creating a Page for Mobile Devices
Working with the ObjectList Control
Adding Validation Controls
Summary
Chapter 26. Development and Deployment Techniques
Development Techniques
Deploying ASP.NET Applications
Summary
Part IV. Web Services
Chapter 27. Introduction to XML
The Power of XML
Getting Started with XML
XML Schema
Summary
Chapter 28. Introduction to XML Web Services
Web Service Requirements
XML Web Services Then and Now
Web Services in Action
Summary
Chapter 29. Creating and Consuming XML Web Services
Creating a Simple XML Web Service
Consuming a Web Service
Creating a Useful Web Service
Summary
Chapter 30. Investigating Web Service Consumers
Consuming a Web Service Synchronously
Consuming a Web Service Asynchronously
Summary
Chapter 31. Securing Web Services
Security Mechanisms
Windows Integrated Authentication
Custom SOAP Authentication
Client Certificates
IP Address Restriction
Summary
Appendix A. Programming Standards
Setting Up Your Environment
Naming Conventions
Coding Conventions
Summary
Index
Top
IOTA^_^
ASP.NET Developer's JumpStart
By Paul D. Sheriff, Ken Getz
Table of Contents
Copyright
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 Addison-Wesley were aware of a
trademark claim, the designations have been printed in initial capital letters or in all capitals.
The author and publisher have taken care in the preparation of this book, but make no expressed or
implied warranty of any kind and assume no responsibility 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
programs contained herein.
The publisher offers discounts on this book when ordered in quantity for special sales.
For more information, please contact:
Pearson Education Corporate Sales Division
201 W. 103rd Street
Indianapolis, IN 46290
(800) 428-5331
Visit AW on the Web: www.awl.com/cseng/
Copyright © 2002 by Pearson Education
All rights reserved. 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, or other-wise,
without the prior consent of the publisher. Printed in the United States of America. Published
simultaneously in Canada.
05 04 03 02 4 3 2 1
First printing, April 2002
Credits
Associate Publisher
Linda Engelman
Acquisitions Editor
Sondra Scott
Development Editor
Karen Wachs
Managing Editor
Charlotte Clapp
Project Editor
Elizabeth Finney
Copy Editor
Bart Reed
Indexer
Angie Bess
Ginny Bess
Proofreader
Jessica McCarty
Technical Editor
Ken Cox
Sundar Rajan
Team Coordinator
Lynne Williams
Media Developer
Dan Scherf
Interior Designer
Anne Jones
Cover Designer
Aren Howell
Page Layout
Susan Geiselman
Dedication
For my wife, Ann, and everyone at PDSA, Inc. Also for my coauthor and good friend Ken Getz. PDS
For Melanie Spiller and Peter Mason: I think of you both as I write each paragraph. Different reasons, of
course. KNG
IOTA^_^
Top
IOTA^_^
ASP.NET Developer's JumpStart
By Paul D. Sheriff, Ken Getz
Table of Contents
About the Authors
Paul D. Sheriff has over 17 years experience programming business applications. Paul is considered one
of the leading Visual Basic programmers in the industry. Paul has also been very active in the Visual Basic
community. He has been the president of the Orange County Visual Basic User Group. He has written over
60 articles for many different publications and is a contributing editor to Advisor magazine, writing many
articles on Visual Basic 3, 4, 5, 6 and now VB .NET. Paul is the author of the Que book Paul Sheriff
Teaches Visual Basic 6.0. Paul also speaks at the Advisor Publications Developer's Conferences,
Microsoft Tech-Ed, and Microsoft Developer Days. Paul currently is the Microsoft Regional Director for
Southern California.
In 1991, Paul started PDSA, Inc., a high-level computer consulting company specializing in high-quality
custom software. PDSA, Inc. is a Microsoft Managed Partner. Since starting PDSA, Inc., Paul and his team
have consulted in many different industries, such as aerospace, real estate, medicine, hotel, and
government.
PDSA, Inc. is available for consulting work and onsite training in Visual Basic, SQL Server, and
Internet/intranet applications. Contact PDSA, Inc. toll-free at (888) 899-PDSA (7372) or at (714) 734-9792.
Fax: (714) 734-9793. E-mail: [email protected]. Visit the PDSA Web site at http://www.pdsa.com.
Ken Getz is a senior consultant with MCW Technologies and splits his time between programming,
writing, and training. He specializes in tools and applications written in Visual Studio .NET and Visual
Basic. Ken is coauthor of several bestselling books, including Access 2002 Developer's Handbooks with
Paul Litwin and Mike Gunderloy, Visual Basic Language Developer's Handbook with Mike Gilbert, and VBA
Developer's Handbook with Mike Gilbert (Sybex). He cowrote several training courses for Application
Developer's Training Company (www.appdev.com), including VB .NET, ASP.NET, Access 2000 and 97,
Visual Basic 6, and Visual Basic 5 seminars. He has also recorded video training for AppDev covering VB
.NET, ASP.NET, VB6, Access 2000, and Access 97. Ken is a frequent speaker at technical conferences
and has spoken often at Microsoft's Tech-Ed conference. Ken also is a technical editor for Access-VB-SQL
Advisor magazine and a columnist for Informant Publications' asp.netPRO magazine. You can reach Ken
at [email protected], www.mcwtech.com, or at www.developershandbook.com.
IOTA^_^
Top
IOTA^_^
ASP.NET Developer's JumpStart
By Paul D. Sheriff, Ken Getz
Table of Contents
Acknowledgments
We would like to thank a few people who helped us get this book put together. Many people contributed to
this book, and they deserve some of the credit for making it a reality:
The editorial staff at Sams, especially Sondra Scott, Acquisitions Editor; Karen Wachs, Development
Editor; Bart Reed, Copy Editor; and Elizabeth Finney, Project Editor. Your help and support made it
far easier to put together this book.
The staff at PDSA, Inc. for helping review and tech edit most of these chapters.
Craig Utley, for some of the material in Chapter 4, "Overview of .NET Framework Classes."
Stephen Scott and Martin Wasznicky for some of the material in Chapter 26, "Development and
Deployment Techniques."
The input of several of our fellow instructors, including Mike Groh, Tom Howe, Bruce Jones, and
Scott Barker.
Mary Chipman and Andy Baron, for unflagging efforts in helping dig into some of the dark corners of
ASP.NET.
Erik Ruthruff, of Informant Communications Group, for helping us get started on this book by
prodding us to write .NET courseware.
If there is useful content in this book, it's due in part to these folks, and to the many others who helped us
learn ASP.NET. If there are errors or omissions, of course, it's all the authors' doing!
IOTA^_^
Top
IOTA^_^
ASP.NET Developer's JumpStart
By Paul D. Sheriff, Ken Getz
Table of Contents
Introduction
The major benefit you will derive from reading this book is that you will be led, step by step, through the
creation of a real-world–style business Web application that takes advantage of many of the new
capabilities provided by the .NET platform. After reading this book, you will be able to program .NET
applications using ADO.NET, Web Forms, and Web Services. Most of the books on the market do not
address a real-world application, and most do not ever use a step-by-step approach. This book uses this
approach so you can learn what you need in order to get your job done quicker and more efficiently. This
will make your investment in this book pay off right from the beginning chapters.
IOTA^_^
Top