Thông tin tài liệu
1 YEAR UPGRADE
BUYER PROTECTION PLAN
Develop and Deliver Enterprise-Critical Desktop and Web
Applications with VB.NET
• Step-by-Step Instructions for Installing and Configuring Visual Basic .NET
and Visual Studio .NET
• Hundreds of Developing & Deploying and Debugging Sidebars, Security
Alerts,and VB.NET FAQs
• Complete Coverage of the New Integrated Development Environment (IDE)
VB.NET
Developer’s Guide
Cameron Wakefield
Henk-Evert Sonder
Wei Meng Lee
Series Editor
solutions@syngress.com
With more than 1,500,000 copies of our MCSE, MCSD, CompTIA, and Cisco
study guides in print, we continue to look for ways we can better serve the
information needs of our readers. One way we do that is by listening.
Readers like yourself have been telling us they want an Internet-based ser-
vice that would extend and enhance the value of our books. Based on
reader feedback and our own strategic plan, we have created a Web site
that we hope will exceed your expectations.
Solutions@syngress.com is an interactive treasure trove of useful infor-
mation focusing on our book topics and related technologies. The site
offers the following features:
■
One-year warranty against content obsolescence due to vendor prod-
uct upgrades. You can access online updates for any affected chap-
ters.
■
“Ask the Author”™ customer query forms that enable you to post
questions to our authors and editors.
■
Exclusive monthly mailings in which our experts provide answers to
reader queries and clear explanations of complex material.
■
Regularly updated links to sites specially selected by our editors for
readers desiring additional reliable information on key topics.
Best of all, the book you’re now holding is your key to this amazing site.
Just go to www.syngress.com/solutions, and keep this book handy when
you register to verify your purchase.
Thank you for giving us the opportunity to serve your needs. And be sure
to let us know if there’s anything else we can do to help you get the
maximum value from your investment. We’re listening.
www.syngress.com/solutions
153_VBnet_FM 8/16/01 4:04 PM Page i
153_VBnet_FM 8/16/01 4:04 PM Page ii
1 YEAR UPGRADE
BUYER PROTECTION PLAN
VB.NET
Developer’s Guide
Cameron Wakefield
Henk-Evert Sonder
Wei Meng Lee
Series Editor
153_VBnet_FM 8/16/01 4:04 PM Page iii
Syngress Publishing, Inc., the author(s), and any person or firm involved in the writing, editing, or
production (collectively “Makers”) of this book (“the Work”) do not guarantee or warrant the results to be
obtained from the Work.
There is no guarantee of any kind, expressed or implied, regarding the Work or its contents.The Work is sold
AS IS and WITHOUT WARRANTY.You may have other legal rights, which vary from state to state.
In no event will Makers be liable to you for damages, including any loss of profits, lost savings, or other
incidental or consequential damages arising out from the Work or its contents. Because some states do not
allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation
may not apply to you.
You should always use reasonable case, including backup and other appropriate precautions, when working
with computers, networks, data, and files.
Syngress Media®, Syngress®, and “Career Advancement Through Skill Enhancement®,”are registered
trademarks of Syngress Media, Inc. “Ask the Author™,”“Ask the Author UPDATE™,”“Mission Critical™,”
“Hack Proofing™,” and “The Only Way to Stop a Hacker is to Think Like One™” are trademarks of Syngress
Publishing, Inc. Brands and product names mentioned in this book are trademarks or service marks of their
respective companies.
KEY SERIAL NUMBER
001 DL84T9FVT5
002 ASD524MLE4
003 VMERL3FG4R
004 SGD34WR75N
005 8LUVCX5N7H
006 NZSJ9NTEM4
007 BWUH5MR46T
008 2AS3R565MR
009 8PL8Z4BKAS
010 GT6Y7YGVFC
PUBLISHED BY
Syngress Publishing, Inc.
800 Hingham Street
Rockland, MA 02370
VB.NET Developer’s Guide
Copyright © 2001 by Syngress Publishing, Inc.All rights reserved. Printed in the United States of America.
Except as permitted under the Copyright Act of 1976, no part of this publication may be reproduced or dis-
tributed in any form or by any means, or stored in a database or retrieval system, without the prior written
permission of the publisher, with the exception that the program listings may be entered, stored, and execut-
ed in a computer system, but they may not be reproduced for publication.
Printed in the United States of America
1 2 3 4 5 6 7 8 9 0
ISBN: 1-928994-48-2
Technical Editor: Cameron Wakefield Freelance Editorial Manager: Maribeth Corona-Evans
Series Editor:Wei Meng Lee Cover Designer: Michael Kavish
Co-Publisher: Richard Kristof Page Layout and Art by: Shannon Tozier
Acquisitions Editor: Catherine B. Nolan Indexer: Robert Saigh
Developmental Editor: Jonathan Babcock CD Production: Michael Donovan
Distributed by Publishers Group West in the United States and Jaguar Book Group in Canada.
153_VBnet_FM 8/16/01 4:04 PM Page iv
v
Acknowledgments
v
We would like to acknowledge the following people for their kindness and support
in making this book possible.
Richard Kristof and Duncan Anderson of Global Knowledge, for their generous
access to the IT industry’s best courses, instructors, and training facilities.
Ralph Troupe, Rhonda St. John, and the team at Callisma for their invaluable insight
into the challenges of designing, deploying, and supporting world-class enterprise
networks.
Karen Cross, Lance Tilford, Meaghan Cunningham, Kim Wylie, Harry Kirchner,
Kevin Votel, Kent Anderson, and Frida Yara of Publishers Group West for sharing
their incredible marketing experience and expertise.
Mary Ging, Caroline Hird, Simon Beale, Caroline Wheeler,Victoria Fuller, Jonathan
Bunkell, and Klaus Beran of Harcourt International for making certain that our
vision remains worldwide in scope.
Anneke Baeten and Annabel Dent of Harcourt Australia for all their help.
David Buckland,Wendi Wong, Daniel Loh, Marie Chieng, Lucy Chong, Leslie Lim,
Audrey Gan, and Joseph Chan of Transquest Publishers for the enthusiasm with
which they receive our books.
Kwon Sung June at Acorn Publishing for his support.
Ethan Atkin at Cranbury International for his help in expanding the
Syngress program.
153_VBnet_FM 8/16/01 4:04 PM Page v
153_VBnet_FM 8/16/01 4:04 PM Page vi
vii
Contributors
Todd Carrico (MCDBA, MCSE) is a Senior Database Engineer for
Match.com. Match.com is a singles portal for the digital age. In addition
to its primary Web site, Match.com also provides back-end services to
AOL, MSN, and many other Web sites in its affiliate program.Todd spe-
cializes in design and development of high-performance, high-availability
data architectures primarily on Microsoft technology. His background
includes designing, developing, consulting, and project management for
companies such as Fujitsu,Accenture, International Paper, and
GroceryWorks.com.Todd resides in Sachse,TX.
Mark Horninger (A+, MCSE+I, MCSD, MCDBA) is President and
founder of Haverford Consultants Inc. (www.haverford-consultants.com),
located in the suburbs of Philadelphia, PA. He develops custom applica-
tions and system engineering solutions, specializing primarily in Microsoft
operating systems and Microsoft BackOffice products. He has over 10
years of computer consulting experience and has passed 29 Microsoft
Certified exams. During his career, Mark has worked on many extensive
projects including database development, application development, train-
ing, embedded systems development, and Windows NT and 2000 project
rollout planning and implementations. Mark lives with his wife Debbie
and two children in Havertown, PA.
Tony Starkey is the Lead Software Developer for Lufkin Automation in
Houston,TX and is currently in charge of revamping, restructuring, and
redesigning, their award-winning, well analysis programs. He also provides
consulting services to other companies in the city.Tony specializes in
Visual Basic,VBScript,ASP, and GUI design. He has been the head
developer on several projects that have seen successful completion
through all cycles of software design.Tony holds a bachelor’s degree in
Computer Science from the University of Houston with a minor in
Mathematics. He is a highly respected expert in numerous online
developer communities, where he has offered in excess of 3,000
153_VBnet_FM 8/16/01 4:04 PM Page vii
viii
validated solutions to individuals, ranging from the novice to the
experienced Microsoft Certified Professional.
Henk-Evert Sonder (CCNA) has over 15 years of experience as an
Information and Communication Technologies (ICT) professional,
building and maintaining ICT infrastructures. In recent years, he has spe-
cialized in integrating ICT infrastructures with secure business applica-
tions. Henk’s company, IT Selective, works with small businesses to help
them develop high-quality, low cost solutions. Henk has contributed to
several Syngress books, including the E-Mail Virus Protection Handbook
(ISBN: 1-928994-23-7), Designing SQL Server 2000 Databases for .NET
Enterprise Servers (ISBN: 1-928994-19-9), and the upcoming book BizTalk
Server 2000 Developers Guide for .NET (ISBN: 1-928994-40-7). Henk lives
in Hingham, MA with his wife Jude and daughter Lilly.
Jonothon Ortiz is Vice President of Xnext, Inc. in Winter Haven, FL.
Xnext, Inc. is a small, privately owned company that develops Web sites
and applications for prestigious companies such as the New York Times.
Jonothon is the head of the programming department and works together
with the CEO on all company projects to ensure the best possible solu-
tion. Jonothon lives with his wife Carla in Lakeland, FL.
Prasanna Pattam is an Internet Architect for Qwest Communications.
He is responsible for the overall architecture, design, development, and
deployment of the multi-tiered Internet systems using Microsoft
Distributed interNet Application Architecture. His expertise lies in devel-
oping scalable, high-performance enterprise Web solutions for Fortune
500 companies.At Qwest, Prasanna has helped to formalize methodolo-
gies, development standards, and best coding practices, as well as to men-
tor other developers. He has written technical articles for different Web
sites and also teaches advanced e-commerce courses. Prasanna holds a
master’s degree in Computer Science. He resides in Fairview, NJ.
Mike Martone (MCSD, MCSE, MCP+Internet, LCNAD) is a Senior
Software Engineer and Consultant for Berish & Associates
153_VBnet_FM 8/16/01 4:04 PM Page viii
ix
(www.berish.com), a Cleveland-based Microsoft Certified Solutions
Provider, Partner Level. In 1995, Mike became one of the first thousand
MCSDs and is certified in VB 3, 4, and 5. Since graduating from Bowling
Green State University with degrees in Computer Science and
Psychology, he has specialized in developing Visual Basic, Internet, and
Office applications for corporations and government institutions. Mike
has contributed to several study guides on Visual Basic and SQL 7 in the
best-selling certification series from Syngress. He lives in Lakewood, OH.
Robeley Carolina (MCP) is a Senior Engineer with Computer Science
Innovations, where his specialties include user interface design and devel-
opment. He has also served on the faculties of the Florida Institute of
Technology and Herzing College, teaching numerous mathematics and
computer science courses. Robley holds a bachelor’s degree in
Mathematics and a master’s degree in Management from the Florida
Institute of Technology. Robley currently resides in Palm Bay, FL and
would like to thank Pamela for her support.
Rick DeLorme (MCP) is a Software Consultant in Ottawa, Ontario,
Canada. He currently works for a small company developing logistics
applications with Visual Basic 6. He has worked on other large-scale
projects such as the Canadian Census of Population where we worked
with VB6, MTS, DCOM, and SQL Server. He is currently working
towards his MCSD. Rick would like to thank his fiancé Jenn for her
encouragement and support.
Narasimhan Padmanabhan (MCSD) is a software consultant with a
major software company. His current responsibilities include developing
robust testing tools for software. He holds a bachelors degree in
Commerce and is an application developer for ERP applications back
home in India. He lives with his wife Aarthi and daughter Amrita in
Bellvue,WA.
153_VBnet_FM 8/16/01 4:04 PM Page ix
[...]... Controls Creating Custom Web Form Controls Exercise 10.6 A Simple Custom Control Exercise 10.7 Creating a Composite Custom Control Web Services How Web Services Work Developing Web Services Exercise 10.8 Developing Web Services Web Service Utilities Service Description Language Discovery Proxy Class Consuming Web Services from Web Forms Exercise 10.9 Consuming Web Services from Web Forms Using Windows... an Assembly 45 153_VBnet_TOC 8/16/01 1:12 PM Page xv Contents NOTE Visualization is still key! Die-hard VB programmers may find themselves having a hard time visualizing all the new concepts in VB. NET (and we all know that proper logic visualization plays a big role in what we do) Something that may help is to think about VB. NET as a completely flexible language that can accommodate Web, console, and... Form How Web Forms Differ from Windows Forms Why Web Forms Are Better Than Classic ASP Adding Controls to Web Forms Exercise 10.2 Adding Web Controls to a Web Form Code Behind 459 460 461 462 441 446 450 454 454 457 462 464 465 467 468 473 153_VBnet_TOC xxiv 8/16/01 1:13 PM Page xxiv Contents How Web Form Controls Differ from Windows Form Controls ASP.NET Server Controls Intrinsic Controls Bound Controls... 7 ASP.NET 7 Framework Classes 8 NET Servers 8 Common Language Runtime 8 History 8 Convergence 9 Object-Oriented Language 10 Object-Oriented Concepts 10 Advantages of Object-Oriented Design 11 History of Object Orientation and VB 13 Namespaces 13 Web Applications 13 Web Applications Overview 13 Web Forms 14 Web Services 15 HyperText Transport Protocol 16 Simple Object Access Protocol 17 xiii 153_VBnet_TOC... Questions NOTE Web form controls not only detect browsers such as Internet Explorer and Netscape, but they also detect devices such as Palm Pilots and cell phones and generate appropriate HTML accordingly 427 428 428 430 431 432 433 434 435 436 437 439 440 440 Chapter 10 Developing Web Applications Introduction Web Forms A Simple Web Form Exercise 10.1 Creating a Simple Web Form How Web Forms Differ... end tag XML documents are similar to HTML, except that the tags are made up by the author Chapter 9 Using ADO.NET Introduction Overview of XML XML Documents XSL XDR XPath Understanding ADO.NET Architecture Differences between ADO and ADO.NET XML Support ADO.NET Configuration Remoting in ADO.NET Maintaining State Using the XML Schema Definition Tool Connected Layer Data Providers Connection Strings... demonstrating how to use ADO.NET including: using a Typed Data Set and using data controls It also contains sample XML and XSD dataset files Chapter 10 contains the source code for exercises that demonstrate how to create Web applications Most of these exercises build on each other.You will build a Web form, then put controls on it.You will see how to use a DataGrid control on a Web form.Then you will see... Studies, Ngee Ann Polytechnic, Singapore.Wei Meng is actively involved in Web development work and conducts training for Web developers and Visual Basic programmers He has co-authored two books on WAP He holds a bachelor’s of science degree in Information Systems and Computer Science from the National University of Singapore xi 153_VBnet_FM 8/16/01 4:05 PM Page xii About the CD This CD-ROM contains the... lastly, Chapter 14 contains code for the ICalculator interface Look for this CD icon to obtain files used in the book demonstrations xii 153_VBnet_TOC 8/16/01 1:12 PM Page xiii Contents From the Series Editor NET Architecture NET NET Framework ASP.NET Updated ASP Engine Web Forms Engine Framework Classes System.Math, System.Io, System.Data, Etc Common Language Runtime Memory Management Common Type System... 69 71 77 77 79 80 81 153_VBnet_TOC xvi 8/16/01 1:12 PM Page xvi Contents Gaining Representation through a Principal Security Policy Summary Solutions Fast Track Frequently Asked Questions Installing Visual Studio NET s s s Phase 1: Installing Windows components Phase 2: Installing Visual Studio NET Phase 3: Checking for service releases Chapter 3 Installing and Configuring VB. NET Introduction Editions . listening.
www.syngress.com/solutions
153_VBnet_FM 8/16/01 4:04 PM Page i
153_VBnet_FM 8/16/01 4:04 PM Page ii
1 YEAR UPGRADE
BUYER PROTECTION PLAN
VB. NET
Developer’s Guide
Cameron. Sidebars, Security
Alerts,and VB. NET FAQs
• Complete Coverage of the New Integrated Development Environment (IDE)
VB. NET
Developer’s Guide
Cameron Wakefield
Henk-Evert
Ngày đăng: 20/01/2014, 01:20
Xem thêm: Tài liệu VB .NET Web Developer`s Guide P1 ppt