rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780764548260

Visual Basic®.Net Bible

by ;
  • ISBN13:

    9780764548260

  • ISBN10:

    0764548263

  • Format: Paperback
  • Copyright: 2002-01-01
  • Publisher: Wiley
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $49.99

Summary

Contributors Include: Jim Chandler, Jacob Grass, Kevin Grossnicklaus, Uday Kranti, NIIT, Rob Teixeira, and Yancey Jones.Visual Basic .NET Bible covers everything you need to get up and runningwith this much changed version of Visual Basic and to begin creating applications for the new Microsoft.NET Platform.

Author Biography

About the Authors Bill Evjen has been programming in Web development since 1996. Though raised in Seattle, Bill is presently an Internet Applications developer in St. Louis, Missouri. His abilities in Microsoft-centric Web technologies have led him to develop a number of large Internet-based applications for Fortune 500 companies and others. Bill's love of the new .NET platform led him to be the Founder and President of the St. Louis .NET User Group (http://www.stlnet.org/), and has helped in bringing prominent .NET speakers to the Midwest. Bill graduated from Western Washington University in Bellingham, Washington with a Russian Linguistics degree, and when he isn't tinkering on the computer, he enjoys spending his free time in his summer place in Toivakka, Finland. You can reach Bill at evjen@yahoo.com. Jason Beres has been a software developer for 10 years. He is currently a consultant in south Florida and works exclusively with Microsoft technologies. Jason holds the MCT, MCSD, and MCDBA certifications from Microsoft. When he is not teaching, consulting, or writing, he is formatting his hard drive and installing the latest beta products from Microsoft and keeping up with the latest episodes of Star Trek. About the Series Editor Michael Lane Thomas is an active development community and computer industry analyst who currently spends a great deal of time spreading the gospel of Microsoft .NET in his current role as a .NET Technology Evangelist for Microsoft. In working with over a half-dozen publishing companies, Michael has written numerous technical articles and authored/contributed to almost 20 books on numerous technical topics including Visual Basic, Visual C++, and .NET technologies. He is a prolific supporter of the Microsoft certification programs, having earned his MCSD, MCSE+I, MCT, MCP+SB, and MCDBA. In addition to technical writing, Michael can also be heard over the airwaves from time to time, including two previous weekly radio programs on Entercom stations, most often in Kansas City on News Radio 980KMBZ. He can also occasionally be caught on the Internet doing an MSDN Webcast discussing .NET, the Next Generation of Web application technologies. Michael started his journey through the technical ranks back in college at the University of Kansas, where he earned his stripes and a couple of degrees. After a brief stint as a technical and business consultant to Tokyo-based Global Online Japan, he returned to the states to climb the corporate ladder. He has held assorted roles including IT Manager, Field Engineer, Trainer, Independent Consultant, and even a brief stint as Interim CTO of a successful dot com, although he believes his current role as .NET Evangelist for Microsoft is the best of the lot. He can be reached via email at mlthomas@microsoft.com. About the Contributors Jim Chandler is an independent consultant with extensive experience in architecting and developing custom, integrated software solutions for small- to medium-sized businesses in the Midwest. Before focusing his career on the Windows platform, Jim was a Graphics Partner at Digital Equipment Corporation, evangelizing X11 and Motif. Jim is a coauthor of an upcoming ASP book from Hungry Minds and an active member of the St. Louis .NET Users Group. He has delivered presentations on such topics as ASP.NET, XML, and Web Services to the St. Louis developer community. His research interests include everything .NET as well as COM+ and the Total Cost of Ownership initiatives. Outside the daily challenges of developing applications and fulfilling his research interests, Jim shares his spare time with his wife, Rhonda, and their two sons, Sam and Thomas. Jacob Grass is currently a Software Engineer at Abiliti Solutions, Inc., an industry leader in customer care and billing solutions for the Telecommunications Industry. His professional experience includes Quality Assurance, Research Analysis, Application Development, and instruction. Jacob currently specializes in development and instruction with Visual Basic .Net. This is his first publication. Kevin Grossnicklaus works as an Enterprise Application Architect for SSE in St. Louis, Missouri. He is responsible for assisting development teams in designing, architecting, and building enterprise scale, distributed Web applications using the latest in Web development tools and technologies. He spends a lot of time evangelizing Microsoft technologies through presentations and talks and pushing the use of XML throughout the enterprise. What spare time he has, he spends with his wife, Lynda, and his two (soon to be three) little girls. Yancey Jones is a full-time programmer with a small consulting firm in southern Ohio. He recently received his B.S. in Information Engineering Technology from the University of Cincinnati's College of Applied Science, where he graduated summa cum laude. Yancey has also done development work for various companies, including a leading airport consulting firm, a national provider of healthcare insurance, an online real estate agency, and a multimedia development company. When not at work Yancey enjoys spending time with his three daughters, playing EverQuest, and reading science fiction (in that order). Yancey can be reached at ybjones@msn.com. Uday Kranti, NIIT, is an MCSD and MCDBA. He is currently employed with NIIT Ltd. as a consultant and has been with NIIT for the last three years. He has been involved in the development of applications in technologies such as Microsoft Visual Basic 5.0, Microsoft Visual Basic 6.0, Microsoft Visual lnterDev, ASP, MS office automation, JavaScript, VBScript, XML, WML, VC++ (ATL), Flash + generator, Install Shield, C, C++ and COBOL. His responsibilities also include training development executives, managing projects, and instructionally and technically reviewing training material. Rob Teixeira is a Florida-based consultant who has been involved with Windows development for over a decade. He has worked with every version of Visual Basic, including VB for DOS, and is pleased and amazed at how the language has evolved to fit the needs of the programming community. His favorite aspect of the job is teaching, and he has taught many private corporate classes, as well as several semesters at the University of Southern Florida, Tampa. Rob is looking forward to the new era of programming that will be ushered in by .NET. You can reach him at Rob Teixeira@msn.com. NIIT is a global IT solutions company that creates customized multimedia training products and has more than 2,000 training centers worldwide. NIIT has more than 4,000 employees in 37 countries and has strategic partnerships with a number of major corporations including Microsoft and AT&T.

Table of Contents

Preface vii
Acknowledgments xiii
Part I: Introduction 1(32)
Introduction to .NET
3(14)
.NET Defined
4(3)
Software as a service
4(1)
The .NET experience
5(2)
The .NET Framework
7(7)
Common Language Runtime
8(5)
Base Class Libraries
13(1)
Visual Basic .NET
14(2)
Language innovations
15(1)
RAD features
15(1)
Web Forms
15(1)
Web Services
15(1)
Windows Forms
15(1)
Summary
16(1)
VB6 and VB .NET Differences
17(16)
Data Type Changes
18(1)
Variant not supported
18(1)
Integer and Long
18(1)
Currency not supported
18(1)
Date changes
19(1)
Strings
19(1)
DefType not supported
19(1)
VarPtr, StrPtr, ObjPtr
19(1)
Arrays
19(1)
Arrays cannot be fixed
20(1)
Option Base not supported
20(1)
ReDim changed
20(1)
The Value of True
20(1)
Operators
20(1)
EQV
20(1)
Short-circuiting
21(1)
Assignment
21(1)
User Defined Types
21(1)
Null Values
22(1)
Variable Scoping
22(1)
Variable Initialization
23(1)
ParmArray Variables
23(1)
Language Issues
23(1)
IsMissing
24(1)
Date$ and Time$
24(1)
Atn, Sgn, and Sqr
24(1)
MsgBox
24(1)
Procedures
24(1)
Calling procedures
24(1)
Static procedures
25(1)
ByVal, ByRef, and As Any
25(1)
Properties
25(1)
Let, Get, and Set
25(1)
Default properties
26(1)
Control Flow
26(1)
While...Wend
26(1)
GoSub...Return
27(1)
Return
27(1)
Forms-based Application Changes
27(2)
PrintForm
27(1)
Circle, Cls, PSet, Line, and Point
28(1)
Caption property
28(1)
Twips on forms
28(1)
Fonts
28(1)
Control arrays
28(1)
Context menus and main menus
28(1)
DDE
28(1)
Clipboard object
29(1)
Controls changes
29(1)
Application Types
29(1)
Webclasses
29(1)
ActiveX documents
29(1)
DHTML applications
30(1)
User controls
30(1)
Property pages
30(1)
Data Access
30(1)
Data Binding, RDO, and ADO
30(1)
DAO
30(1)
Debugging
31(1)
Debug.Print
31(1)
Debug.Assert
31(1)
Summary
31(2)
Part II: The VB .NET Programming Language 33(316)
Object-Oriented Programming and VB .NET
35(12)
Encapsulation
35(2)
Inheritance
37(4)
Polymorphism
41(5)
Summary
46(1)
Hello World
47(12)
Creating a Windows Forms Application
48(7)
Creating a Windows Application project
48(1)
Using Windows controls
49(3)
Using the Code window
52(3)
Creating a Web Forms Application
55(3)
Creating a Web Application project
55(1)
Using the Web Forms Server controls
56(1)
Using the Code window
57(1)
Summary
58(1)
Data Types, Variables, and Operators
59(46)
Data Types and Variables
59(12)
VB .NET data types
60(2)
Reference types versus Value types
62(1)
Types as classes
63(1)
Declaring variables
63(4)
Constants
67(1)
Variable scope
67(4)
Type Conversion
71(5)
Built-in type conversion functions
72(2)
System.Convert namespace
74(2)
Option Strict statement
76(1)
Structures
76(2)
Numeric Parsing
78(2)
System.String Class
80(2)
Operators
82(21)
Arithmetic operators
82(7)
Concatenation operators
89(1)
Assignment operators
90(5)
Comparison operators
95(3)
Comparing strings and numbers
98(1)
Logical/bitwise operators
98(3)
Operator precedence
101(2)
Summary
103(2)
Arrays
105(14)
Introducing Arrays
105(2)
Multidimensional Arrays
107(1)
Dynamic Arrays
108(3)
The ReDim statement
108(1)
The Preserve keyword
109(1)
The Erase statement
110(1)
The Array Class Members
111(3)
The GetUpperBound function
111(1)
The GetLowerBound function
111(1)
The GetLength function
112(1)
The SetValue function
112(2)
An Example
114(1)
Arrays of Arrays
115(3)
Summary
118(1)
Conditional Logic
119(12)
The If...Then...Else Statement
119(3)
The Select...Case Statement
122(2)
Do...Loop Statement
124(2)
While...End While Statement
126(1)
For...Next Statement
126(1)
For Each...Next Statement
127(1)
A Complete Example
128(2)
Summary
130(1)
Procedures
131(34)
Procedures Overview
131(2)
Procedure access modifiers
132(1)
Advantages of procedures
132(1)
Types of Procedures
133(6)
Sub procedures
133(4)
Function procedures
137(2)
Built-in Functions
139(25)
Microsoft.VisualBasic.Conversion
140(1)
Microsoft.VisualBasic.DateAndTime
141(10)
Microsoft.VisualBasic.Strings
151(11)
Working with the registry
162(2)
Summary
164(1)
Dialog Boxes
165(22)
Introduction to Dialog Boxes
165(1)
The MessageBox Class
166(8)
The Show method
166(3)
The MsgBox function
169(3)
The InputBox Function
172(2)
The CommonDialog Class
174(11)
The FileDialog class
174(1)
The OpenFileDialog class
174(3)
The Save FileDialog class
177(2)
The ColorDialog class
179(1)
The FontDialog class
180(2)
The PageSetupDialog class
182(2)
The PrintDialog class
184(1)
Summary
185(2)
File IO and System Objects
187(38)
Introduction to IO
187(1)
Directory and DirectoryInfo Class
188(6)
Directory class
189(3)
DirectoryInfo class
192(2)
Path Class
194(2)
File and FileInfo Class
196(5)
Reading and Writing Files
201(11)
File Streams
202(4)
TextReader class
206(3)
TextWriter class
209(3)
XML IO
212(8)
Reading XML files
212(5)
Writing XML files
217(3)
Watching the File System
220(3)
Event watching
220(2)
Creating a custom watcher application
222(1)
Summary
223(2)
Dictionary Object
225(26)
Getting Started Using the DictionaryBase
226(3)
Implemented Classes
226(2)
Creating a Functional DictionaryBase collection
228(1)
Adding Functionality
229(3)
Creating the Add method
230(1)
Creating the Remove method
231(1)
Creating the Item property
231(1)
Putting It All Together
232(2)
DictionaryBase Members
234(15)
Public properties
234(4)
Protected properties
238(1)
Protected methods
239(9)
Protected constructors
248(1)
Summary
249(2)
Error Handling
251(18)
Errors in Programming
251(2)
Structured Exception Handling
253(8)
Exceptions
254(2)
Try...Catch...Finally
256(3)
VB .NET extensions
259(1)
Throwing exceptions
260(1)
On Error Statement
261(6)
The Err object
261(1)
Error trapping
262(1)
Handling errors
263(2)
Exiting the error handler
265(1)
The chains of errors
266(1)
Custom Made Errors
267(1)
Summary
268(1)
Namespaces
269(12)
Introduction to Namespaces
269(2)
Creating Namespaces
271(4)
Finding assemblies
273(1)
References and auto-List members
274(1)
Namespaces in .NET
275(3)
Help on help
275(2)
Working with namespaces
277(1)
Namespace Reference
278(2)
Component model
278(1)
Data
279(1)
Services
279(1)
Networking
279(1)
GUI
279(1)
Security
279(1)
Web Services
280(1)
General application
280(1)
Globalization
280(1)
Summary
280(1)
Classes and Objects
281(24)
Introduction to Classes
282(3)
Instance and static classes
283(2)
Creating a Class
285(5)
Component classes
288(2)
What about standard modules?
290(1)
The Class Block
290(1)
Inside Classes
291(7)
Methods
292(1)
Properties
293(3)
Fields
296(1)
Events
297(1)
Overloading and Overriding
298(4)
Overloading
298(2)
Overriding
300(2)
Constructors and Destructors
302(2)
Constructors
302(1)
Destructors
303(1)
Summary
304(1)
Multithreading
305(24)
Threading Background
306(6)
Preemptive multitasking
306(1)
Threading priorities and locking
307(1)
Symmetrical Multiprocessing (SMP)
308(1)
Resources-The more the merrier
309(1)
Threading in VB6
309(1)
Application domains
310(1)
Benefits of multithreaded applications
311(1)
Creating Multithreaded Applications
312(11)
Creating new threads
313(3)
Thread priority
316(1)
Thread state
316(7)
Returning Values from Threads
323(3)
Polling and Listening
326(1)
Summary
327(2)
COM Interop and MSMQ
329(20)
Consuming COM from .NET
329(4)
Microsoft Message Queue
333(2)
What is Message Queue?
333(1)
Why MSMQ?
334(1)
Getting started with MSMQ
334(1)
Programming MSMQ
335(13)
Creating queues
337(1)
Accessing queues
338(1)
Deleting queues
339(1)
Referencing queues
340(1)
Sending messages to queues
341(1)
Reading queue messages
341(3)
Deleting queue messages
344(4)
Summary
348(1)
Part III: Visual Studio .NET: The IDE for VB .NET 349(100)
Visual Basic .NET IDE
351(20)
The Start Page
351(3)
My Profile
352(1)
Get Started
353(1)
What's New
353(1)
Online Community
353(1)
Headlines
353(1)
Search Online
353(1)
Downloads
353(1)
Web Hosting
354(1)
Your First Visual Basic .NET Solution
354(3)
Solution directory structure
355(1)
File extensions
356(1)
Back to the IDE
357(13)
Window management basics
357(2)
Windows, dialogs, and more windows
359(7)
The Code Editor
366(3)
Designers
369(1)
Summary
370(1)
Compiling and Debugging
371(32)
Compiling Your Code
372(6)
Solution build configurations
372(2)
Project configurations
374(3)
Project item build properties
377(1)
Conditional Compilation
378(1)
Debugging
379(5)
Breakpoints
380(4)
Debugging Tools
384(9)
Call stack
384(1)
Autos
385(1)
Locals
386(1)
Me window
387(1)
Watch windows
388(1)
Command window
389(1)
Modules
390(1)
Edit and Continue
391(1)
Microsoft CLR Debugger
391(2)
Debug and Trace Objects
393(9)
Debug class
393(2)
Trace class
395(1)
Debugger class
395(1)
TraceListeners
396(4)
Trace switches
400(2)
Summary
402(1)
Customizing
403(24)
Start Page and Profiles
403(3)
Getting Started
403(1)
Up-to-date content
404(1)
My Profile
404(2)
Commands
406(5)
Windows
411(3)
Customizing Editors and Designers
414(7)
Integrating external tools
421(1)
Macros
422(3)
Summary
425(2)
Source Control
427(22)
What Is Source Control?
427(1)
Understanding Microsoft Visual SourceSafe
428(1)
Installing SourceSafe
428(2)
Using the Visual SourceSafe Administration Program
430(6)
Adding, editing, and deleting users
430(5)
Creating a new database
435(1)
Using Visual SourceSafe Explorer
436(8)
Creating a project
436(1)
Adding files to a project
437(1)
Setting a working folder
438(1)
Checking out files
438(1)
Checking in files
439(1)
Undoing check out
439(1)
Getting latest version of a file
440(1)
Sharing files
440(1)
Branching files
440(4)
Accessing SourceSafe through the Visual Studio .NET IDE
444(2)
Good SourceSafe Practices
446(1)
Summary
447(2)
Part IV: Data Access 449(98)
Introduction to Data Access in .NET
451(20)
A History of Microsoft Data Access Technologies
451(8)
Open database connectivity
452(1)
Visual Basic 3.0
453(1)
Visual Basic 4.0
454(1)
OLEDB
455(1)
Visual Basic 6.0
456(1)
ADO
457(2)
Data Access Today
459(2)
Visual Basic and the Internet
460(1)
Enterprise Application Integration (EAI)
461(1)
Overview of ADO.NET
461(9)
XML = data, data = XML
461(1)
ADO.NET structure
462(8)
Summary
470(1)
ADO.NET
471(32)
Accessing ADO.NET Features and Namespaces
471(1)
Using ADO.NET
472(29)
Understanding data providers
473(18)
DataSets
491(10)
Summary
501(2)
Data Access in Visual Studio .NET
503(30)
Visual Studio .NET Database Tools
504(6)
Using Server Explorer
504(1)
Adding connections
505(1)
Administering data sources through the Server Explorer
506(4)
Visual Studio .NET and ADO.NET
510(21)
Adding components with the Component Designer
510(2)
Adding connections to forms
512(2)
Adding data commands in Visual Studio .NET
514(4)
Adding DataAdapters in Visual Studio .NET
518(8)
Adding DataSets to projects
526(4)
Using typed DataSets
530(1)
Summary
531(2)
Introduction to XML in .NET
533(14)
Visual Studio .NET and XML
533(3)
Manipulating XML in Code
536(9)
XML serialization
540(5)
Summary
545(2)
Part V: Windows Forms 547(160)
Introduction to System.Windows.Forms
549(8)
The Basics of the Window
550(2)
What constitutes a window?
550(1)
What can a window do?
551(1)
Other potential pitfalls
551(1)
Basics of the Windows Form
552(2)
Where does the Windows Form come from?
553(1)
Top 10 Reasons Why a Windows Form Is Better than a Visual Basic 6 Form
554(2)
Summary
556(1)
Controls
557(26)
Delegates
557(2)
System.Windows.Forms.Control
559(23)
Properties
560(10)
Methods
570(12)
Summary
582(1)
Specific Controls
583(70)
Base Controls
583(9)
ButtonBase
584(1)
ListControl
584(2)
ScrollableControl
586(1)
Menu
587(1)
ScrollBar
587(1)
TextBoxBase
588(2)
ContainerControl
590(1)
UpDownBase
591(1)
Derived Controls
592(37)
Button
592(1)
CheckBox
593(1)
CheckedListBox
594(1)
ComboBox
595(3)
ContextMenu
598(1)
DataGrid
598(7)
DateTimePicker
605(2)
DomainUpDown
607(1)
HScrollBar and VScrollBar
607(1)
ListBox*
608(2)
ListView
610(3)
MainMenu
613(1)
MonthCalendar
613(3)
NumericUpDown
616(1)
PropertyGrid*
617(2)
RadioButton
619(1)
RichTextBox
620(3)
TextBox
623(1)
Timer
624(1)
ToolBar
624(1)
TrackBar
625(1)
TreeView
626(3)
Display Controls
629(12)
Form*
629(4)
GroupBox
633(1)
Label
633(2)
LinkLabel
635(1)
Panel
636(1)
PictureBox
636(1)
ProgressBar
637(1)
Splitter*
637(1)
StatusBar
638(1)
TabControl
639(1)
ToolTip
640(1)
Dialog Controls
641(7)
CommonDialog
641(1)
ColorDialog
642(1)
FileDialog
643(1)
FontDialog
644(1)
OpenFileDialog
645(1)
PageSetupDialog
646(1)
PrintDialog
646(1)
SaveFileDialog
647(1)
Miscellaneous Controls
648(1)
Examples
648(4)
Summary
652(1)
``Visual'' Inheritance
653(24)
Why ``Visual?''
654(1)
When to Use Visual Inheritance
654(1)
Forms
655(8)
Wizards
655(5)
Data Entry
660(3)
Controls
663(8)
Examples
664(7)
User Controls
671(1)
Attributes
671(3)
Designers
674(2)
Summary
676(1)
Irregular Forms
677(14)
Shapes
677(1)
Graphics
678(10)
Surface
678(1)
Stylus
679(4)
Color
683(1)
Object to draw
683(5)
User Interactivity
688(2)
Summary
690(1)
Other Namespaces and Objects in the Catalog
691(16)
System.Windows.Forms.Design
692(3)
System.Resources
695(1)
ResourceManager
695(1)
The Application Object
696(4)
The NativeWindow Object
700(1)
The SystemInformation Object
701(5)
Summary
706(1)
Part VI: VB .NET and the Web 707(294)
Introduction to Web Development
709(10)
Languages and Technologies of the Web
710(5)
HTML
710(1)
Cascading Style Sheets (CSS)
711(1)
JavaScript
712(1)
Transact-SQL
713(1)
ADO 2.6 and ADO.NET
714(1)
ASP.NET
714(1)
Browser Issues
715(3)
.NET to the rescue!
715(1)
Another browser concern-resolution
716(2)
Summary
718(1)
Introduction to ASP.NET
719(8)
Why ASP.NET?
719(7)
ASP.NET controls
720(1)
ASP.NET compared to ASP 3.0
720(6)
Summary
726(1)
Page Framework
727(22)
Understanding HTML
727(4)
Head section
728(2)
Body section
730(1)
Understanding Internet Infrastructure
731(1)
Setting Up Your Server in Windows 2000
731(2)
Using Visual Studio .NET to Build Your Web Forms
733(14)
Creating your first Web application
733(2)
Working with your first Web Form
735(1)
Working in Design mode
736(1)
Working with controls
737(1)
Adding more files
737(2)
Using page directives
739(8)
Summary
747(2)
HTML Server Controls
749(40)
XHTML-Compliant Code
749(1)
Common Tag Attributes
750(1)
Overview of HTML Server Controls
750(3)
Descriptions of the HTML Server Controls and How to Program Them
753(28)
HTMLAnchor control
753(1)
HTMLButton control
754(2)
HTMLForm control
756(1)
HTMLGeneric control
757(4)
HTMLImage control
761(2)
HTMLInputButton control
763(2)
HTMLInputCheckBox control
765(1)
HTMLInputFile control
766(2)
HTMLInputHidden control
768(1)
HTMLInputImage control
769(2)
HTMLInputRadioButton control
771(2)
HTMLInputText control
773(2)
HTMLSelect control
775(2)
HTMLTable, HTMLTableCell, and HTMLTableRow controls
777(3)
HTMLTextArea control
780(1)
Creating HTML Server Controls - Another Way
781(6)
Summary
787(2)
Web Controls
789(78)
Browser Sniffing
790(1)
HTML Server Controls versus Web Controls
790(1)
Web Controls and How to Program for Them
791(75)
Text display controls
794(4)
Input controls
798(16)
Form submission controls
814(6)
Navigation controls
820(4)
Image controls
824(2)
Layout controls
826(7)
Intrinsic controls
833(7)
Data Binding
840(4)
List Bound controls
844(22)
Using Visual Studio .NET and Web Controls
866(1)
Summary
866(1)
Validation Controls
867(22)
What Validation Means
867(1)
Server-Side/Client-Side Validation
868(1)
.NET to the Rescue!
869(18)
<asp:requiredfieldvalidator>
873(4)
<asp:comparevalidator>
877(2)
<asp:rangevalidator>
879(1)
<asp:regularexpressionvalidator>
880(3)
<asp:customvalidator>
883(1)
<asp:validationsummary>
884(2)
Finishing the form
886(1)
Summary
887(2)
User Controls
889(18)
Embracing Code Reuse
889(1)
Understanding the Benefits of User Controls
890(1)
Building a Simple User Control
891(4)
Working with User Control Properties
895(11)
The script
897(1)
The file display
897(1)
Testing the User control
897(1)
Using Web Form events to change User control properties
898(2)
Passing properties back to the Web Form
900(6)
Summary
906(1)
Events
907(12)
Placing Events in Your Controls
907(2)
Building Events
909(2)
Using Web Form Events
911(2)
Event arguments
911(1)
Event postbacks
912(1)
Creating Event Handlers in Design Mode
913(4)
Default event handlers
913(2)
Non-default event handlers
915(2)
Summary
917(2)
Cascading Style Sheets
919(18)
The Benefits of Using CSS
919(1)
Creating and Applying Styles
920(5)
Creating styles directly in your HTML tags
920(1)
Style Builder
921(1)
Applying styles using the Style Builder
922(3)
Internal Stylesheets
925(2)
External Stylesheets
927(9)
Referencing stylesheets in Web documents
929(1)
Creating your own external stylesheet
929(7)
Summary
936(1)
State Management
937(18)
Understanding State
937(1)
ViewState
938(3)
Toggling ViewState on and off
939(1)
Extending ViewState
940(1)
Querystrings
941(4)
Creating querystrings
941(1)
Retrieving querystrings
942(3)
Sessions
945(6)
Running sessions in-process
946(1)
Running sessions out-of-process
947(1)
Maintaining sessions on SQL Server
948(2)
Deciding on the state of sessions
950(1)
Cookieless session state
950(1)
Cookies
951(3)
Advantages to using cookies
952(1)
Disadvantages to using cookies
952(2)
Summary
954(1)
ASP.NET Applications
955(20)
Creating a Web Application
955(4)
Deleting an Application
959(1)
global.asax
959(4)
Application directives
959(3)
Declarations
962(1)
Application-level events
963(1)
Understanding web.config
963(10)
<configuration> node
966(1)
<compilation> node
966(1)
<customerrors> node
967(1)
<authentication> node
968(1)
<authorization> node
969(1)
<trace> node
970(1)
<sessionState> node
970(1)
<globalization> node
971(1)
<appSettings> node
972(1)
Summary
973(2)
Tracing
975(8)
Understanding the Benefits of ASP.NET Tracing
975(1)
Enabling Tracing
976(2)
Enabling tracing at the application level
976(1)
Enabling page-level tracing
977(1)
Viewing Tracing Output
978(2)
Reading and Customizing the Trace Log
980(2)
Summary
982(1)
Security
983(18)
Authentication and Authorization
983(7)
Authentication
983(7)
Accessing Authentication Properties
990(2)
Performing Forms-Based Authentication
992(7)
Summary
999(2)
Part VII: Web Services 1001(170)
Introduction to Web Services
1003(26)
The Next-Generation Internet
1003(1)
Understanding the Need for Web Services
1004(2)
Basic Elements of Web Services
1006(19)
Describing data
1006(8)
Communicating requests and responses
1014(3)
Describing Web Service capabilities
1017(5)
Discovering available Web Services
1022(1)
Determining which sites provide Web Services
1023(2)
Microsoft HailStorm
1025(2)
Summary
1027(2)
Web Services Infrastructure
1029(24)
Microsoft Web Services Platform
1029(12)
The Microsoft .NET Framework
1031(10)
Web Services Infrastructure
1041(6)
Web Service directories
1041(1)
Web Service discovery
1042(2)
Web Service description
1044(1)
Web Service wire formats
1045(2)
Leveraging ASP.NET Features in Web Services
1047(3)
Supporting transactions
1047(1)
Enabling session state
1048(1)
Caching Web Service data
1049(1)
Buffering server responses
1050(1)
Inside an ASP.NET Web Service
1050(2)
Summary
1052(1)
SOAP
1053(24)
What is SOAP?
1053(2)
Benefits of using XML with SOAP
1054(1)
Transporting messages
1054(1)
The SOAP Specification
1055(1)
Elements of a SOAP Message
1056(3)
The SOAP envelope
1056(1)
The SOAP header
1057(1)
The SOAP body
1058(1)
SOAP Data Type Support
1059(2)
SOAP Exceptions
1061(2)
HTTP as a SOAP Transport
1063(2)
SOAP in the .NET Framework
1065(6)
Using SOAP headers
1065(3)
Using SOAP extensions
1068(3)
Handling SOAP exceptions
1071(1)
The Microsoft SOAP Toolkit
1071(5)
Toolkit Features
1072(1)
Creating a Web Service
1073(2)
Creating a Web Service consumer
1075(1)
The WSDL/WSML generator tool
1075(1)
The SOAP trace utility
1076(1)
Summary
1076(1)
Building a Web Service
1077(30)
Creating the Temperature Conversion Web Service
1077(12)
Temperature conversion formulas
1078(1)
Method description
1078(1)
Method arguments
1078(1)
Method behavior
1079(1)
Building the Web Service in Visual Studio
1079(10)
Writing the Implementation Code
1089(5)
Building the Web Service
1094(1)
Testing the Web Service
1095(7)
Testing the Web Service with HTTP-GET
1096(5)
Testing the Web Service with HTTP-POST
1101(1)
Test using Visual Studio
1102(1)
Debugging the Web Service
1102(4)
Setting a breakpoint
1103(1)
Starting the debugger
1104(1)
Testing Web Service methods
1104(1)
Examining program variables
1104(1)
Resuming method execution
1105(1)
Summary
1106(1)
Deploying and Publishing Web Services
1107(20)
Deployment Preparation
1107(1)
Deploying Web Services
1108(9)
Web Service deployment tools
1109(1)
Deployment using a Web Setup Project
1110(4)
Deployment using project copy
1114(2)
Deployment using XCOPY
1116(1)
Deployment using other file transfer methods
1116(1)
Publishing Web Services
1117(9)
Publishing with DISCO
1117(2)
Publishing with UDDI
1119(4)
Adding a Web Service to your business registration
1123(1)
Defining a new binding for the Web Service application
1124(2)
Summary
1126(1)
Finding Web Services
1127(22)
Web Service Discovery
1127(15)
Finding Web Services with the disco tool
1129(3)
Finding Web Services with UDDI
1132(4)
Finding Web Services with Visual Studio
1136(6)
Web Service Interrogation and Proxy Classes
1142(6)
Creating a proxy class with the WSDL tool
1143(4)
Creating a proxy class with Visual Studio
1147(1)
Summary
1148(1)
Consuming Web Services
1149(22)
Web Service Consumer Overview
1149(2)
Creating the Web Application Project
1151(3)
Locating the CTemp Web Service
1154(2)
Adding a Web Reference
1156(3)
Building the Web Form
1159(3)
Creating an Instance of the CTemp Proxy
1162(2)
Calling CTemp Proxy Methods
1164(1)
Testing the Consumer Application
1165(1)
Handling SOAP Exceptions
1166(2)
Application Execution Model
1168(2)
Summary
1170(1)
Appendix A: Globalization 1171(14)
Globalizing Applications
1171(1)
Localization
1172(1)
Resource Files
1173(3)
CultureInfo Class
1176(4)
ResourceManager Class
1180(2)
Windows Forms Designer Globalization
1182(3)
Appendix B: VB6 Upgrade Wizard 1185(10)
Why You Should Not Upgrade
1186(1)
The Upgrade Wizard
1187(2)
SimpleClient.VBP
1189(1)
SimpleClient.NET
1190(5)
Index 1195

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program