Training
Certifications
Books
Special Offers
Community




 
MCAD/MCSD Self-Paced Training Kit: Developing Web Applications with Microsoft® Visual Basic® .NET and Microsoft Visual C#® .NET, Second Edition
Author Jeff Webb with Microsoft Corporation
Pages 864
Disk 1 Companion CD(s); 1 DVD(s)
Level All Levels
Published 05/14/2003
ISBN 9780735619272
Price $69.99
To see this book's discounted price, select a reseller below.
 

More Information

About the Book
Table of Contents
Sample Chapter
Index
Related Series
Related Books
About the Author

Support: Book & CD

Rate this book
Barnes Noble Amazon Quantum Books

 

Index


Symbols
& (ampersand), 16
> (angle brackets), 611
' (apostrophe), 16
* (asterisk), 426, 480
\ (backslash), 434
, (comma), 426
" (double quotes), 687
/ (forward slash), 16
- (minus sign), 28
+ (plus sign), 16, 28, 36
? (question mark), 135, 426
; (semicolon), 16
[] (square brackets), 16, 590
_ (underscore), 16

A
AbortTransaction event, 282
AboutNumber procedure, 112
absolute positioning, 584-85, 602
absoluteExpiration parameter, 647
abstract classes, 109-12
abstract keyword, 102, 103, 109
AcceptChanges method, 277
Accept-Language header, 639
Access (Microsoft), 227, 231
access control. See also authentication; authorization; permissions
   allowing access to specific users, 426
   anonymous users and, 415-18
   classes and, 98-102
   denying access to specific users, 426
Access Denied page, 437
Access Permissions page, 55-56
ACID (atomic, consistent, isolated, and durable) test, 273-74
ACT (Microsoft Application Center Test), 6, 543-47, 665
   lab exercises, 569
   load tests and, 534-37
   mimicking browser types with, 546
   .NET assemblies and, 547-48
   running tests with, 540-42
   Tests list, 537-38
   using multiple connections with, 542-43
Action tab, 503
Active Server Pages. See ASP
ActiveX controls (Microsoft), 539, 713, 724, 725, 791
ACTSamples project, 546, 547
ad hoc testing
   described, 527
   test plans and, 527
<Ad> tag, 178
adaptation, described, 157
adapter objects, 242, 245, 230-31, 237
Add button, 163
Add Call button, 298-99
Add Counters dialog box, 502, 506, 654-55
Add DataSet dialog box, 296
Add Default Document dialog box, 75
Add Files dialog box, 492, 496
Add method, 162, 248, 646, 647, 649
Add Modules dialog box, 497
Add New Item dialog box, 80, 145, 576
Add New Project dialog box, 490-91
Add Reference dialog box, 96, 362, 591-92
Add Style Rule option, 674, 678
Add Style Rule Wizard, 674
Add This Dataset To The Designer check box, 286
AddAttribute method, 610
AddContact.aspx, 288-94, 297, 299, 331-36
Add/Edit Application Extension Mapping dialog box, 420-21
AddHandler method, 603
Additional Providers tab, 482
AddressBox Web user control, 630-31
AddToCache procedure, 287-88
AddUser function, 438-39, 467
AddValidationCallback attribute, 640
Administrator account, 430
Administrators group
   adding users to, 489
   role-based authorization and, 426-27
ADO.NET, 6, 11, 226-31, 782-84
   data access layers and, 226-28
   data sets and, 232, 233-35
   data views and, 235-37
   database classes, 6
   database connection types, 227, 278
   database updates and, 241-43
   namespaces, 227
   object references and, 237-39
   transaction processing and, 273-83
AdRotator control, 158, 176, 177, 178
Advanced Features application
   client-side scripts and, 409-10
   cookies and, 409-10
   described, 398-401
   e-mail systems and, 404-7
   frame-based user interfaces and, 407-9
   storing user information and, 401-4
Advanced Save Options dialog box, 767
advertisements, 158, 176-77
AdvertisementsFile property, 177
Alert dialog box, 501-3
alerts. See also warning messages
   displaying, 560-61
   Event Viewer, 501-4
   identifying, 501-2
   testing and, 531, 560-61
Alerts list, 504
algorithms, 434, 438
aliases
   described, 55
   folder, 53, 55
<allow> element, 426
<AlternateText> tag, 178
Amazon.com, 394-95
ampersand (&), 16
angle brackets (<>), 611
animations, 681
anonymous access. See also access control
   authentication and, 419, 428-29
   described, 415-18
   passwords and, 429
Answer method, 558
APIs (application program interfaces), 11, 92. See also Win32 API
apostrophe ('), 16
application
   domain, described, 76
   events, 68-70
   pools, configuring, 76
Application Center Test. See ACT
Application Configuration dialog box, 420
Application object
   caching and, 646, 648
   described, 125-26
   methods, 124-25
   namespaces and, 123
   properties, 124-25
   state variables, 67-68
Application state
   build process and, 481
   described, 139
   security and, 438
   sharing, 518
   usage issues, 139
   variables, 67-68, 77, 132, 139-42
Application_BeginRequests event handler, 68
Application_End event, 66, 68
Application_EndRequest event handler, 69
Application_Error event procedure, 315, 316
ApplicationException class, 314-15
ApplicationException exception, 314
applications, types of, 2-6
Application_Start event handler, 68, 70
architecture
   data access, 226
   disconnected, 226
Array class, 13-14
Array method, 91
ArrayList data type, 614
arrays
   binding list controls to, 166-67
   creating to demonstrate simple data sources, 168
   syntax for, 16
arrData array, 166-67, 168
ASCII (American Standard Code for Information Interchange), 766
.ascx file extension, 63
.asmx file extension, 63
ASP (Active Server Pages)
   isolation levels and, 76
   migration from earlier versions of, 157
ASP.NET. See also ASPNET user account
   advantages, 6
   caching and, 640-41, 643, 649, 651, 654-55
   character encoding and, 766
   COM and, 365
   custom Web controls and, 580, 584, 591, 595, 599
   deployment and, 484, 511
   described, 5-6, 7-17
   error events and, 315
   exception handling and, 315, 318-19, 321, 324, 325
   executables, mapping files to, 420-21
   globalization and, 750, 756, 757, 766-67
   Help and, 708
   hosting services and, 20, 43-46, 482-83
   Passport authentication and, 445
   security and, 417, 420-21, 423-26, 432, 445
   templates, 52-53
   testing and, 539
   tracing and, 325
   transactions and, 282
   tutorials, 38, 46-48
   unmanaged code and, 361
   user counts, 503
   variables and, 248
   worker processes, recycling, 511-13
ASPNET user account
   deployment and, 486-89
   described, 417
   impersonation and, 430
   setup, 231
aspnet_isapi.dll, 76, 421
aspnet_state.exe, 518-19
aspnet_wp.exe, 76, 511-12, 565, 749
asp_wp.exe, 8
.aspx file extension, 63
assemblies
   described, 11
   locating, 549-50
   registering, 548-49
   satellite, 743, 754-64
   testing and, 547-49
assembly argument, 761
Assembly attribute, 593
Assembly Cache Viewer, 485
Assembly property, 761
Assembly Registration Tool (Regasm.exe), 372, 548-49, 569
assembly.dll, 548
AssemblyInfo file, 478, 627-28
AssemblyInfo.cs, 62, 521
AssemblyInfo.vb, 62, 521
AssemblyVersion attribute, 480
Assert method, 560-61, 564
associative links, 724-26
asterisk (*), 426, 480
atomic, consistent, isolated, and durable test. See ACID test
atomic, use of the term, 273
attachments, 387, 388
Attributes property, 585
Authenticate method, 437-38, 440
authentication, 62, 435, 480, 489. See also access control; <authentication> element
   advantages of, 425
   Basic, 429
   described, 415-21
   Digest, 429
   domain-based networks and, 425
   enabling, 422-25
   folder-level, 431
   <identity> element and, 430
   Passport, 418-19, 431, 445-46
   testing and, 543-44
   Windows, 418-19, 422-25, 428-29, 786
<authentication> element, 434, 471, 480
Authentication Methods dialog box, 428-29
AuthenticationType method, 429
authorization, 425, 426-29, 443-44. See also access control; <authorization> element
   described, 415
   list, in Web.config, 426, 427
   role-based, 426-27
<authorization> element, 422, 433, 443, 480
AuthorizeRequest event, 428
Auto Hide feature, 22, 41
autocomplete feature (code completion), 28-29, 32
automated testing, described, 526. See also testing
AutoPostBack property, 73, 159
Available Columns list, 233, 254

B
Back button, 34
background color, 401-4, 410, 682-83
Background property, 176
Backgroups.aspx, 401-4
BackImageUrl property, 176
backslash (/), 434
Banner And Content template, 409
base classes. See also classes
   custom Web controls and, 578, 596, 598, 602
   described, 102-3
   exception handling and, 314-15
   overriding methods in, 596
base keyword, 103, 106
baseName argument, 761
Basic authentication, 429. See also authentication
BeginTransaction method, 278
behavior property, 681
behaviors
   described, 681-84
   downloading, 681
   importing, 681, 682
Behaviors Library topic, 681
BigType.css, 679, 703, 704
/bin directory, 64, 74, 362, 484-85
Bindable Properties list, 166
Birthdate column, 253, 255
bitmaps, for icons, 627
<body> element, 379, 402, 703
Body property, 546
Body Search test, 547
boldface font, 614, 672-73. See also fonts
Boolean expressions, 698
boundaries, of applications, 74-75, 760
breakpoints, setting, 34-36, 565-66, 570. See also debugging
Breakpoints tab, 565
Browse button, 182
Browse Performance Counters dialog box, 545-46
Browser object
   client-side scripts and, 375
   cookies and, 341
   namespaces and, 126
Browser Record page, 535, 536
Browser Type test, 546
browsers. See also Internet Explorer browser
   caching and, 638-39
   client-side scripts and, 374-76
   closing, 34
   cookies and, 136-37
   Hello, Web! display in, 59, 60
   Help and, 708, 709-11, 730
HTML Help, displaying, 730
   new windows, displaying pages, 200-203, 785
   redirecting, 377-78
   testing and, 539, 546
   tracing and, 327-29
   types of, mimicking, 546
BrowserWindow class, 201-2
Build Action property, 496
build process, 478-80, 531, 787
   options, 464-77
   unattended, 551-52
bulleted lists, 677-78
butAdd_Click event procedure, 137, 291, 331-32, 334
butCancel_Click event procedure, 291
butCreate_Click event procedure, 210
butGetOrders_Click event procedure, 663
butOK_Click event procedure, 159, 775
butRestore_Click event procedure, 277
butSend_Click event procedure, 406
butSignOut_Click event procedure, 471
Button control, 59, 183, 576-77
   caching and, 659
   Contact Management application and, 295-96
   Context.Handler object and, 134
   custom Web controls and, 576-77, 593-96
   events, 72-73
   File Editor form and, 217
   FileManager form and, 212, 213
   graphical, 176
   Help and, 739
   lab exercises, 206
   login Web forms and, 435, 463
   NewAccount form and, 209
   postback events and, 170-74
   tasks performed by, 158
Button parameter, 724, 726
Button1 command button, 59-60
Button1_Click event procedure, 59

C
C programming (high-level language)
   client-side scripts and, 376
   Visual C# and, similarity of, 6, 15
C++ programming (high-level language), 15
Cache API counters, 655
Cache object, 249, 251, 287-88, 646-49, 655, 662
Cache property, 639
cache statements, 646-47
Cache Total counters, 655
cached events, 72, 617-19
CacheDependency object, 647, 651
CacheItemRemovedCallback delegate, 646, 649
caching. See also memory
   Cache events and, 649-50
   Contact Management application and, 287-88, 303
   controlling, 639-41, 649
   counters, 655-56
   customer lists, 660-62
   data from stored procedures, 662-65
   data sets, 248-51
   described, 635
   duration settings, 636, 637, 640
   errors, 789
   fragment, 642-45
   lab exercises, 658-66
   locations, 641
   multiple responses from a single Web form, 637-39
   multiple versions of a user control, 643-44
   OutputCache page directive and, 636-37
   parts of a Web form, with user controls, 642-43
   performance, monitoring, 654-56, 665-66
   priority settings, 649
   testing, 665-66
   types, combining, 645, 658-59
   updating caches, 651-53
CachingLab.aspx, 659-66
Calendar class, 743
Calendar control, 158, 180-82
CallID value, 299
Calls table, 261-63
Calls.aspx, 295-302
Cancel button, 300
carriage returns, 289
CAs (certificate authorities)
   assurance provided by, 453
   certificate requests and, 454-55
   described, 451-52
   list of trusted sites provided by, 452
cascading, use of the term, 671
cascading style sheets. See CSS
case sensitivity
   cookies and, 343
   JScript and, 376
   Visual Basic .NET and, 15
   Visual C# and, 29
   Visual C# .NET and, 15
   XML and, 687
case statement, 698
Case statement, 698
casts, type conversions performed by, 15
Catch blocks, evaluation of, 311
catch keyword, 308
Catch keyword, 308
Catch/catch statement, 314, 332
CD-ROMs, 494
CDYNE Credit Card Checker Web service, 391-92
cells, storing data for, 163
Center method, 106, 366-72
.cer file extension, 455
certificate authorities. See CAs
Change event, 619
Chaos isolation level, 281
character encoding. See also symbols
   described, 766
   globalization and, 766-67, 791
   Help, 768
   UTF-8, 766, 767
   UTF-16, 766
CharSet field, 356
ChartTitle property, 632
CheckBox control
   events, 73
   Help and, 732
   tasks performed by, 158
   value settings, 174-76
CheckBoxList control
   displaying items from data sets in, 259-61
   tasks performed by, 158
   value settings, 174-76
Checked property, 175
CheckPassword function, 440, 441
child controls
   instantiating, 602
   resizing, 606
child-protection features, 450
Choose A Project Type page, 491
Choose File dialog box, 182-83
Choose File To Include page, 492
Choose Project Outputs To Include page, 491
Circle class, 104, 108-9
   COM and, 364-72
   interfaces and, 121
   testing and, 568-69
class attribute, 676, 682
class keyword, 98
class libraries, 11-13, 365-66, 591
Class Library output type, 591
Class Library project, 365-66
class members
   access levels for, 98-102
   overloading, 103-8
   overriding, 103-8
   shadowing, 103-8
   signatures for, 103
classes. See also base classes
   abstract, 109-12
   access levels for, 98-102
   code-behind files and, 28
   creating, 80-83, 98-102
   custom Web controls and, 578, 590, 591, 614
   derived, 102-3, 109
   described, 80, 96-98
   exception handling and, 313, 314-15
   key concepts for working with, 97
   lab exercises, 145-47
   locating, 13
   names of, 80, 674-75
   namespaces and, 96-102
   public, hiding, 366-72
   storing, 83-84
   styles and, 674-76
   testing and, 548
classname identifier, 675
Clear Current Trace link, 329
ClearError method, 316
Click event. See also Click event procedure
   Button controls and, 59
   custom Web controls and, 582-83, 603, 605, 620, 622
   designating, as a default event, 605
   Help and, 627
   server controls and, 73
Click event procedure. See also Click event
   Contact Management application and, 298-99
   custom Web controls and, 594-95
   event order and, 172
   ImageButton control and, 172-73
   postback events and, 170
   query strings and, 135
   security and, 463
clientConnectedCheck attribute, 514
clients. See also browsers; client-side scripts
   client/server architecture and, 3-5, 62
   files, retrieving, 182-85
   servers and, round-trips between, 515
   uploading files from, 182-85
   user information, storing, 341-42
client-side scripts. See also clients
   checking support for, 399-401
   choosing a scripting language for, 376
   DOM and, 376-77
   e-mail systems and, 386-88
   inline, adding, 377-80
   issues related to, 374-76
   lab exercises, 409-10
   responding to, 380-85
   XML Web services and, 392-94
ClientValidationFunction property, 193
Clipboard Ring, 24-25
Close method, 264, 270, 711
CLR (common language runtime), 11-13, 66, 353, 779
   described, 11
   globalization and, 766
   managed code and, 11-12
   marshaling and, 356
   unmanaged code and, 361
Cobol, 14
code
   completion, 28-29, 32
   hiding, 28
   managed, 11-12, 353
   unmanaged, 353-61, 373
Code Editor
   code completion, 28-29, 32
   error highlighting, 29-30
   options, 29-30
   setting breakpoints in, 34-36
CodeBehind attribute, 28
code-behind files
   described, 26
   editing, 26-30
   security and, 423
Collection Editor
   adding items with, 161-62
   Table control and, 163
   value settings, 174-76
Collection Editor dialog box, 161-62
collisions, namespace, 91
color, background, 401-4, 410, 682-83
ColorPick behavior, 682-83
columns
   adding, to controls, 167-68
   data sets and, 233-34, 254
   formatting, 254-55, 690-91
   properties of, 254
Columns collection, 237
COM (Component Object Model), 12, 365-72. See also COM interoperation
   build process and, 476, 480
   CLR and, 12
   deployment and, 485-86
   HRESULT codes, 372
   properties, 365
   testing and, 548-51, 569
COM interoperation. See also COM
   described, 362-72
   exception handling and, 372
   limitations of, 372-73
   testing and, 548
   tools, 372
comma (,), 426
command files
   creating, 551, 552-53
   scheduling tasks and, 553-54
command line, running Visual Studio .NET from, 552
command objects
   properties of, 242
   SQL statements used by, changing, 242-43
Command window, 36-37
commands, performing, 170-74, 263-64
commandText property, 242, 243
CommandType property, 242
comments
   described, 16
   syntax for, 16
   Task List and, 33
   types of, 16
Commit button, 276
CommitTransaction event, 282
common language runtime. See CLR
Common Properties folder, 476-77
CompareInfo class, 764
CompareValidator control, 187, 190
comparison operators, 16
<compilation> element, 477, 480
compilation errors, 531
compiling
   errors, 531
   help projects, 712-13, 714, 726, 727
   integration tests and, 531
Completing The New Test Wizard page, 537
Component Object Model. See COM
   components. See also specific controls
   
build process and, 480
   categories, in the Toolbox, 24-25
   deployment and, 485-86
   display, in Tool windows, 21-23
   names, 485
   shared, 485-86
   strong-named, 485
   weak-named, 485
composite custom controls
   appearance of, 596-99
   creating, 586-90
   described, 573
   events and, 603-5
   lab exercises, 631
   methods for, 599-602
   naming, 593
   properties for, 599-602
   rendered custom controls and, comparison of, 609-10
   resizing, 606
   superclassing, 606-8
   templates for, 587-91
   test projects and, 591-96
CompositeControls assembly, 593
Computer Management console, 415-18, 426-27, 488-89
ComVisible attribute, 366, 785
concordance tables, 726
configuration files, described, 8, 480-81. See also Machine.config; Web.config
Configuration Properties folder, 476-77
connection objects
   creating, 230-31
   object references and, 237
Connection tab, 229
connections
   Contact Management application and, 286
   creating, 228-31, 244-45
   lab exercises, 284
   testing, 229
   transactions and, 278
   types, 278
   updating, 245-46
   used for testing, number of, 542-43
consistent, use of the term, 273
ConstraintException exception, 332
constructors
   COM and, 373
   described, 97
Contact Management application
   AddContact form, 288-94, 297, 299, 331-36
   adding database components to, 285-88
   building, 284-85
   Calls Web form, 294-302
   ContactTypes form, 302-3
   DeleteContact Web form, 302-3
   exception handling and, 331-37
   key concepts, 284
   new project, 284-85
ContactID key, 261
Contacts data set, 252-59
Contacts table, 230-32, 252-55, 261-64, 291
Contacts.dbo data connection, 286
ContactTypes Web form, 302-3
content. See also content files
   described, 7-8
   directories, 8
content files. See also content
   use of the term, 492
   writing, to project folders, 494
ContentEncoding property, 767, 768
Contents.htm, 408-9
Context1 Web form, 133
Context2 Web form, 134
Context.Handler object, 132, 133-35
contextID argument, 730
context-sensitive Help, 730-31
ContextUtil class, 274, 282
Continue button, 36
   controls. See also custom controls; specific controls
   
adding, 58-62, 84
   choosing, 157-58
   creating, 154-56
   grouped, 175, 178-90
   layout options for, 154-56
   properties of, 157
   value settings for, 174-76
Controls collection, 596, 614-15
ControlToCompare property, 187, 190
ControlToValidate property, 73, 186-87, 190
Convert class, 766
cook6.xsl, 705
cookies, 343
   advantages, 340
   browser settings, checking, 136-37
   case sensitivity of, 343
   checking for, 403
   checking support for, 399-401
   creating, 410
   deleting, 449-50
   described, 132, 136, 340
   disadvantages, 340
   Forms authentication and, 432, 434, 437
   lab exercises, 409-10
   Passport authentication and, 446, 447, 449-50
   storing, 341-42, 345-46
   testing and, 543
   updating, 404
   using keys within, 343-44
Cookies collection, 341
Cookies property, 341
cook.xml, 705
cook.xsl, 705
copying applications, 484
count function, 698
counters
   adding, 506, 522-23, 545-46, 654-55
   alerts and, 502, 505
   caching and, 655-56
   deployment and, 522-23
   event logs and, 506
Counters tab, 545
cpuMask attribute, 517
CPUs (central processing units). See processors
Create A Setup For A Web Application option, 491
Create Columns Automatically At Run Time check box, 233, 254
Create Project page, 492-93
CreateChildControls method, 596, 603
CreateObject method, 548, 549
CreateSpecificCulture method, 762
<credentials> element, 434, 437
credit card numbers, validating, 391-92
cross-references, for help topics, 723-24
.cs file extension, 26-27, 63
CScript.exe (Windows Scripting Host), 550, 569
csHelpDemo project, 738
.csproj files, described, 33
CSS (cascading style sheets), 6, 789-90. See also style sheets; styles
   described, 669-72
   lab exercises, 701-5
   precedence rules, 671
   XSL transformations and, comparison of, 685
CssClass attribute, 676
culture. See globalization
culture attribute, 747, 749
CultureInfo class, 743-45, 759
CultureInfo object, 777
Currency Converter Web form
   creating, 770-77
   performing culture-dependent conversions with, 775-77
   user-interface resource files for, 771-73
CurrentCulture property, 749, 753, 756, 761-62
CurrentUICulture property, 754-57, 761-62
cursor coordinates, displaying, 382-83
Custom Binding Expression, 166
   custom controls. See also specific controls
   
adding, 580-81, 625-28
   appearance, 596-99, 610-13
   classes and, 578, 590, 591, 614, 788
   contained text, retrieving, 614-16
   data types and, 614
   DLLs and, 592, 593, 626
   events and, 577-80, 582-84, 603-5, 617-22
   grid layout for, 584-85, 602
   interfaces, drawing, 576-77
   lab exercises, 630-32
   methods for, 577-80, 599-602
   naming, 593
   properties for, 577-80, 599-602, 613-14
   resizing, 606
   superclassing, 606-8
   templates for, 587-91, 609
   test projects and, 591-96
   types of, 788
   user actions, responding to, 617
   user data, retaining, 622-25
   utilizing, in code, 581-82
Custom Errors tab, 320
customer
   lists, 660-62
   orders, 662-65
<customErrors> element, 480
Customize Toolbox dialog box, 625-26
CustomValidator control, 187, 192-95

D
data adapters, 286
data binding, 252-59, 296
   adding items with, 167-70
   data sets, displaying, 252-55
   described, 165, 252
   lists and, 165-67
   navigation and, 201
   templates and, 257-58
data controls, described, 10
Data Controls tab, 235
data provider layer, 226
data reader objects, 267-69
data sets
   caching, 248-51, 662-65
   Contact Management application and, 291, 296
   creating, 231-32, 242, 252-53
   data types and, 237, 238
   DataList controls and, 255-59
   displaying, 232, 233-35, 252-55
   displaying items from, in other list controls, 259-61
   DropDownList controls and, 261-63
   lab exercises, 284, 286
   layers and, 226
   locking, 281
   naming, 286
   object references and, 237
   reading XML into, 349-50
   records, adding, 239
   restoring, 276
   retrieving, 351-52, 663
   rows, changing, 240
   saving, 248
   transactions and, 274, 275-77
   updates and, 242, 245-47
   user information and, 346
   XML schema and, 347-48
data types
   checking, 238
   COM and, 372
   converting, 13, 356-59
   custom Web controls and, 614
   information about, viewing, 238-39
   object references and, 237-38
   unmanaged code and, 356-59, 361
data views, 226, 235-37
databases
   build process and, 477
   commands, executing, 263-64
   connecting to, 228-31
   exception handling and, 308
   executing commands on,
   Forms authentication and, 434, 437-40
   records, changing, 477
   records, retrieving, 267-70
   sharing state information and, 518, 519
   storing user information with, 345
   transactions and, 278-81
   updating, 241-43
   usernames and passwords, adding, 438-40
   users, authenticating, 440-43
   values, returning, 264-66
   Web hosting services and, 43
DataBind method, 167
DataBinding dialog box, 256-57
DataBindings dialog box, 166, 169
DataBindings property, 166, 169, 256-57
DataException exception, 333
DataGrid control
   adding items to, 167-70
   caching and, 659, 663
   column displays, 233-34
   data sets and, 233-35, 252-55
   data views and, 235-37
   described, 161
   tasks performed by, 158
   transactions and, 275, 278-81
   updates and, 245
DataLink Properties dialog box, 228-29
DataList control
   adding items to, 167-70
   Contact Management application and, 294, 296
   described, 161
   display data sets in, 255-59
   tasks performed by, 158
DataMember property, 233
DataRow object, 242
DataRowState property, 277
DataSet object
   binding data from, to controls, 234
   central role of, 237
   creating, 232
   data views and, 235
   updating databases from, 241-43
   XML and, 349, 350
Dataset Primary Key check box, 349
DataSource property, 166, 168, 233, 235, 252, 259
DataText property, 259, 260
DataValue property, 259, 260
DataView control, 235
dates. See Calendar control; globalization
DateTime object, 647, 651
DBConcurrencyException exception, 333
Debug class, 477, 560-62
Debug menu
   Exceptions command, 313
   Start command, 33
Debug mode, starting applications in, 33-34
Debugger Users group, 562, 563-64, 569
debugging. See also errors; testing
   composite custom controls, 592
   deployment and, 515
   described, 33-34, 556-60
   disabling, 515
   messages, 560-62
   .NET Framework and, 12
   optimization and, 515
   options, setting, 474-77
   permissions and, 562, 563-64
   remote, 561, 562-63
   setting breakpoints, 34-36, 565-66, 570
   start pages and, 75
Debugging tab, 541
Declare statement, 92, 353, 355, 359, 698
default documents, described, 75
default events
   described, 605
   designating, 605
default pages
   creating, 399
   deployment and, 484
   described, 399
   security and, 434
Default Users Group, 543-544
Default Web Site icon, 56
Default Web Site Properties dialog box, 453, 455
Default.asp, 75
Default.aspx, 399, 434, 484
DefaultEvent attribute, 605
Default.htm, 75, 399, 484
delegates
   declaring, 112-14
   described, 112-19
delegation
   custom Web controls and, 585
   described, 585
DELETE command, 266
Delete method, 240-41
DeleteCommand property, 242, 245
DeleteContact form, 302-3
DeleteContact function, 278
Denied.htm, 471
dependencies, 647, 651-53
deployment. See also maintenance; setup projects
   adjusting attributes after, 513-14
   configuring applications for, 480-81
   copying applications for, 484
   described, 482, 787
   folder setup for, 484
   identifying applications for, 478-80
   installing shared components, 485-86
   lab exercises, 521-23
   across multiple servers, 516-19
   optimization after, 515
   preparing applications for, 521
   privileges and, 486-89
   repairing applications after, 511-13
   setup projects and, 490-96
   tuning applications after, 513
   upload tools for, 482-83
derived classes
   abstract classes and, 109
   described, 102-3
Design mode
   custom Web controls and, 581, 584-85, 602, 626
   data sets and, 231-32, 238
   data views and, 235-37
   described, 25-26
Design tab, 25-26
Design view, 677
Design window, 59
destructors, described, 97
DevEnv.exe, 552
Digest authentication, 429
dir attribute, 748
Directory Security tab, 453, 457
dirty read, use of the term, 281
disconnected architecture, 226
DLLHost.exe, 76
DllImport attribute, 353, 355-56
DLLs (dynamic-link libraries), 64, 76. See also satellite assemblies
   build process and, 478
   CLR and, 12
   custom Web controls and, 592, 593, 626
   deployment and, 484, 511
   DLL hell and, 12
   native-code, 361
   program logic and, 8
   security and, 421
   starting, 65-66
   testing and, 548
   unmanaged code and, 353, 361
DOCUMENT object, 325
Document Object Model. See DOM
Document tab, 75
Document windows
   correcting errors in, 33
   described, 21-23
   switching between edit modes in, 25-26
   Web hosting account setup in, 42-46
DocumentSource property, 685, 704-5
DOM (Document Object Model), 186, 376-77
domain controllers, 425
domain-based networks, 425
_doPostBack method, 622
dot notation, 94
double quotes ("), 687
downloading
   behaviors, 681
   help, 713, 738-39
drivers, 531
DropDownList control, 259-63, 402-4, 659
   adding items with, 161-64
   Contact Management application and, 295
   data binding and, 165-67
   described, 161
   events, 72-73
   Help and, 709
   selecting records with, 261-63
   tasks performed by, 158
   validation and, 189
drpTimeZone control, 638, 643-44
durable, use of the term, 273, 274
Duration attribute, 636, 637, 640

E
Edit Key dialog box, 348-49
edit modes, 25-26, 168-70, 256
Edit Properties option, 320
Edit Template option, 256
EditFile.aspx, 217-21
Eiffel, 14
element IDs, 674-77
<element> tag, 347, 687
   elements. See also tags; specific elements
   
creating styles for, 676-77
   inserting, 695-97
e-mail
   alerts, 503, 505
   attachments, 387, 388
   certificate requests and, 454-55
   client-side scripts and, 386-88
   lab exercises, 404-7
EnableViewState property, 167, 235
EnableViewStateMac attribute, 196, 199
encoding
   character, 766-67
   globalization and, 766-68
Encoding class, 768
encryption. See also server certificates
   Forms authentication and, 434
   keys, 451-53
   password, 438, 439, 441, 462, 467
   SSL and, 451-53, 786
enctype attribute, 183
EnsureChildControls statement, 602
enterprise-level transactions, 274, 282. See also transactions
Entries counter, 655
environment variables, 551, 552-53
ErrDefault.aspx, 323
error events, 315-17, 334-36
Error Mapping Properties dialog box, 320-21
error pages, 318-23, 784
ErrorMessage property, 187, 188, 189
ErrorPage attribute, 319, 322-23
errors. See also debugging; exceptions
   compilation, 531
   detection of, 29-30
   display of, in browsers, 33-34
   logging, 316, 324-29
   navigation and, 199
   object references and, 238
   running projects with, 33-34
   run-time, 34
   syntax, 29-30
   transactions and, 274, 275
   validation and, 190
Eval method, 257
   event procedures. See also specific procedures
   
connecting events to, 59-60
   creating, 59
Event Properties dialog box, 499-500
Event Viewer MMC snap-in, 498-503, 511
   events. See also specific events
   
connecting event procedures to, 59-60
   defining new, 500-505
   logging, 417-18, 506-11
   order of, 172
   raising, 583, 604-5, 617-22
   responding to, 65-73
   using objects from, 84-86
   viewing, 499-500
   wiring, 60
exception handling. See also errors; exceptions
   adding, 331-34
   described, 307, 784
   error pages and, 318-23
   events, 315-17
   extending, 331-34, 337
   keywords, 308
   lab exercises, 331-34, 337
   security and, 439, 441
   structures, 308-13, 315-17
   techniques, 306-7
   unmanaged procedures and, 359-61
   uploading and, 308-9, 313-14
exceptions. See also errors; exception handling
   causing, 313-14
   defining new, 314-15
   described, 306
   Internet-related, 318-19
   logging, 324-29
   types of, viewing, 313
   unhandled, 307, 326
Exceptions dialog box, 313
Execute method, 133, 199-200
ExecuteNonQuery method, 263, 266-67, 270
ExecuteReader method, 263, 266, 267-70
ExecuteScalar method, 263-66, 270
Expiration property, 341
Expires property, 343
Extensible Markup Language. See XML
Extensible Stylesheet Language. See XSL
Extensible Stylesheet Language Transformations. See XSLT
External Help option, 21, 41

F
fallback values, 759, 762, 771-72
FAT (File Allocation Table) file system, 418
File Field HTML control, 158, 182, 183, 185
File Manager form, 212-16
File menu
   Add Project command, 490, 591
   New command, 79, 715
   New Project command, 58
File System editor, 496-97
file systems, 418, 486, 496-97
fileEncoding attribute, 767
FileManager.aspx, 212-16
FileName property, 185
filenames
   file extensions in, 26-27, 63, 455
   procuring, from clients, 158
FileNotFoundException exception, 313-14
Fill method, 267
filters, 235-37
finally keyword, 308
Finally keyword, 308
Finally/finally block, 311
Find method, 346, 349, 350, 351
FindBy method, 240
FlashCard.aspx, 79, 83-86, 529-33, 547-48, 550-52, 556-60
flow layout, 154-56, 158, 178
Flush method, 562
focus method, 710
folders. See also root folders
   access permissions and, 55-56, 57
   creating, 53, 74, 484, 496-97
   path specifications for, 55
   renaming, 496-97
   virtual, 53-58, 484, 496-97
font-family attribute, 672
fonts. See also text
   boldface, 614, 672-73
   for headings, 701-3
   styles and, 672, 701-3
font-size attribute, 672
font-style attribute, 672
footers, 256
For Each loops, 176
Form Load event, 60
Form method, 197
<form> tag, 183
formatting. See style sheets
Forms authentication, 418-19, 435-44, 461-71
   enabling, 432-33, 462
   impersonation and, 431
   mode, setting, 433-35
<forms> element, 434, 435
FormsAuthentication class, 436-38
forward slash (/), 16
fragment caching, 642-45. See also caching
frames. See also framesets
   banner, 407, 409
   checking support for, 399-401
   lab exercises, 407-9
framesets, 407-10. See also frames
From property, 388, 406
FrontPage (Microsoft), 54, 56-57, 716
Full Remote Debugging option, 562-63
functional blocks, described, 15

G
GAC (global assembly cache)
   deployment and, 483, 485-86, 497
   described, 485
   testing and, 549
   viewing components in, 486
GacUtil.exe, 486
garbage collection, 66
generate-id function, 696-97
GetCurrent method, 430
GetLastError method, 316
GetLastWin32Error method, 353, 359
GetNextUser method, 545
GetStrings method, 763
GetSystemInfo procedure, 353
GetUserData procedure, 350, 351
GetVaryByCustomString method, 639, 644
GIF (Graphics Interchange Format), 177. See also graphics
global assembly cache. See GAC
Global class, 124
Global.asax, 64, 497, 639, 644
   described, 62
   events in, 68-70
   exception handling and, 315
   namespaces and, 124, 125
   Passport authentication and, 447-48
Global.asax.cs, 62
Global.asax.vb, 62
Global_Error event procedure, 315, 316
globalization. See also satellite assemblies
   character encoding and, 766-67, 791
   described, 741-44
   encoding and, 766-68
   getting user-interface cultures, 761-62
   Help and, 764, 768
   issues, 765-66
   lab exercises, 770-77
   redirecting based on primary language, 743, 745-47
   redirecting to culture-specific applications, 744-45
   responding to the thread's culture, 753-54
   setting the current culture, 750-53
setting user-interface cultures, 761-62
   validation controls and, 765-66
   Web.config and, 747-49, 767
<globalization> element, 481, 747-48, 767, 791
globally unique identifiers. See GUIDs
glyphs, 766
Google, 394
graphics. See also Image control; ImageButton control
   background, 176
   displaying, 176-77
   foreground, 176
   for icons, 627
   image map, 172-73
grid layout, 178, 154-55, 576-77, 584-85, 602
grouped controls, 175, 178-90
GroupName property, 175, 179
groups
   adding, 489
   adding users to, 563-64
   deployment and, 489
   role-based authorization and, 426-27
   testing and, 563-64
   viewing, 426-27
gString variable, 761
Guess A Number Web form, 409
guessing game, 385
Guid attribute, 480
GUIDs (globally unique identifiers), 62, 345-46

H
<h1...hn> tags, 718
Handles clause, 59, 60
Handles keyword, 119
hashing, 196-97, 199
HashPasswordForStoringInConfigFile method, 438, 467
HashTable data type, 614
<head> element, 672-73, 702
headers, 256
headings, 379-80, 701-3, 718
Headlines pane, 19, 20
Hello, Web! display, 59, 60, 64
Help. See also HTML help
   accessing, 37-38
   ACT, 547
   ActiveX controls and, 713, 724, 725, 791
   behaviors, 681
   character encoding and, 768
   compiling, 712-13, 714, 726, 727
   contents, 713, 714, 719, 735-37
   context-sensitive, 730-31
   cross-references, 723-24
   design panes and, 20-21
   displaying, 40, 41, 709-11
   downloading, 713, 738-39
   globalization and, 764, 768
   indexes, 37-38, 713, 722-23, 735-38
   lab exercises, 734-39
   language filters, 37-38, 40-42
   links and, 709, 710, 723-26
   MS DTC, 282
   noncompiled, 728-29
   previewing, 727
   searches, 713, 714, 726, 735-37
   source files, 713
   ToolTips, 708-9, 790
   XML, 699
HelpDemo.chm, 736
helper functions, 291, 299
HelpSample.chm, 713, 717, 729
hexadecimal format, 517
Hit Ratio counter, 656
Hits counter, 655
Home Directory tab, 420
Horizontal Rule controls, 80, 158, 632
hosting services, 20, 42, 43-46, 482-83
Hosting Services tab, 42-43
<HR> tag, 632
href attribute, 710
HResult property, 372
.htm file extension, 63
HTML (HyperText Markup Language)
   described, 3-4
   documents, editing, 25-26
   elements, IntelliSense for, 26
   exception handling and, 325, 326, 329, 336
   rules, 296, 297
   start pages and, 75
   tracing and, 326, 329, 336
   Web forms and, relationship of, 8
HTML controls. See also HTML; server controls
   advantages of, 157
   client-side scripts and, 379
   as components of ASP.NET, 5
   composite custom controls and, 573
   described, 9-10
   Help and, 708-9
   listed by programming task, 158
<html> element, 683-84
HTML Grid Layout Panel control, 576-77, 585
HTML help. See also Help; HTML Help Workshop
   creating, 714-16
   displaying, 711-13, 730
   files, building, 734-35
   linking, to Web forms, 728-32, 738-39
HTML Help ActiveX control, 713, 724, 725, 791
HTML Help Compiler (hhc.exe), 727
HTML Help Viewer (hh.exe), 711-13, 728-29
HTML Help Workshop. See also HTML help
   associative links, creating, 724-26
   cross-references, adding, 723-24
   full-text searches, enabling, 726, 735-37
   help projects, compiling, 727
   HTML help, creating, 714-16
   index entries, adding, 722-23, 735-37
   project options, 716-17
   tables of contents, building, 718-21
HTML mode, 25-26, 257-58, 592-93
HTML tab, 25-26
HtmlTextWriter utility, 610-12
HTTP (HyperText Transfer Protocol)
   cookies and, 341
   described, 4
   exception handling and, 319-22
   POST method, 638, 640
   security and, 453, 456-59
   status codes, 321-22
   tracing and, 329
HttpApplication class, 124, 125
HttpCachePolicy object, 639-41
HttpCookie class, 341
HTTPS (HyperText Transfer Protocol Secure), 453, 456-59
HTTPStatusCode enumeration, 321
Hyperlink control, 158, 195
hyperlinks. See links


Next



Last Updated: May 15, 2003
Top of Page