Training
Certifications
Books
Special Offers
Community




 
Microsoft® ASP.NET Programming with Microsoft Visual C#® .NET Version 2003 Step By Step
Author G. Andrew Duthie
Pages 624
Disk N/A
Level Beg/Int
Published 04/23/2003
ISBN 9780735619357
Price $39.99
To see this book's discounted price, select a reseller below.
 

More Information

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

Support: Book & CD

Rate this book
Barnes Noble Amazon Quantum Books

 

Index


Symbols and Numbers
; (semicolons), 509
- (decrement operator), 59
-= (decrement assignment operator), 59
!= (inequality operator), 59
#Include directive, 194
% (modulus operator), 59
<%#expression%>, 324
<% %> (render blocks)
   code, 212-13
   code declaration blocks, 191
   migration process and, 508
   sparing use of, 517
( ) (parentheses), calling methods and, 509
* (asterisk) wildcard, 180
* data type, 52
? (question mark) wildcard, 180
{} (brackets), declaring block-level variables, 56
++ (increment operator), 59
+= (increment assignment operator), 59
== (equality operator), 59
404-Not Found errors, 118-23

A
Abandon method, Session object, 100
access control
   ACLs (access control lists), 178-79
   ASP.NET security, 158-59
   Web services, 422-25
accessibility variables, 58-59
Access, Microsoft, 286, 297-98
accounts, security limitations, 150-51
ACLs (access control lists), 178-79. See also access control
   ACL-based authorization, 178-79
   Windows-based authentication and, 178
ActiveX Data Objects. See ADO (ActiveX Data Objects)
AddAt method, Controls collection, 240
<add> child element
   <appSettings>, 560
   <clientTarget>, 557
   <httpHandlers>, 258
   <httpModules>, 551
Add/Edit Application Extension Mapping dialog box, 393
Add method, Cache class, 457
Add New Item dialog box, 41-42, 47
Add New Project dialog box, 478
Add Or Remove Programs
   IIS installation, 562
   removing unnecessary services, 135-38
addresses, SqlConnection connection string keys, 285
Addr, SqlConnection connection string keys, 285
Add Web Reference dialog box, 435-36
Add Web User Control, Solution Explorer, 447
administrators
   IIS installation, 562
   security settings, 142
ADO (ActiveX Data Objects)
   compared with ADO.NET, 280
   constants, 59-60
   improvements to, 5
   migrating to ADO.NET, 511
ADO.NET, 280-90
   ASPNET account setup, 288-90
   DataAdapters, 301-2
   database connections, 283
   DataColumns, 302-3
   DataReaders, 322-23, 517
   DataRelations, 308
   DataRows, 302-8
   DataSets, 282-83, 301, 312-21
   DataTables, 302-11
   DataViews, 321-22
   migrating from ADO, 511
   .NET Data Providers, 280-82, 287
   OleDbCommand, 296-98
   OleDbConnection, 286-87
   OleDbDataReader, 323
   overview of, 280
   parameter name specification, 301
   ReadXml method, 302
   resources, 279
   SqlCommand, 290-96
   SqlConnection, 283-86
   SqlDataReader, 322-23
   stored procedures, 299-301
   trusted connections, 287
   typed datasets, 313-21
   updating datasets, 312-13
   Web services and, 422
   XML in, 283
ADO.NET Step by Step (Riordan), 279
AdRotator control, 257-60
advertising Web services, 425-27, 439
<a>, HTML element, 230
alias attribute, <clientTarget> element, 557
AllKeys property, Application Collection, 93
<allow> child element
   roles attribute, 542
   users attribute, 180, 542
   verbs attribute, 180-81, 542
anonymous access, 178
APIs (application programming interfaces), for caching, 441, 456
Application collection, 112
Application Configuration dialog box, 392, 394
application deployment, 462
   application structure and, 466
   assembly deployment, 474-75
   content deployment, 473-74
   global assembly deployment, 474-75
   IIS configured as an application, 466-69
   IIS permissions, 475-76
   manually, 473-76
   overview of, 465
   physical paths vs. URLs, 469-71
   storing configuration settings, 471-72
   target directories for, 473-75
   versioning and, 475
   Visual Studio .NET, 477-80
application-level output, tracing, 486-87, 504
Application Name, SqlConnection connection string keys, 284
Application objects
   ASP.NET, 30
   caching and, 442
   methods and properties, 93
application pools, 129
application root, 481
applications. See also Web applications
   configuring, 118
   running, 14
   scalability and, 104-5
   structure of, 466
application state, 92-98
   Application object methods and properties, 93
   defined, 92
   limitations of, 97-98
   overview of, 92-93
   reading and writing, 94-96
   recommendations for information stored in, 96-97
   synchronizing access to, 94
Application StaticObjects, 112
appRequestQueueLimit attribute, <httpRuntime>, 523
<appSettings> element
   adding to configuration files, 481
   attributes of, 560
   overview of, 559
   storing configuration settings, 472
   storing user ID and passwords, 513
arrays
   binding to DataGrids, 329-30
   data type, 53
.ascx files, 37, 203, 213
.asmx files, 37, 413
ASP classic
   ADO and, 280
   application deployment, 465
   Application object, 91
   caching, 442
   code compatibility, 213
   compared with ASP.NET, 34
   debugging, 483
   directives, 194
   error messages, 483-84
   execution model, 220
   impersonation, 181
   migrating to ASP.NET, 507-9
   overview of, 30
   server controls, 111
   Session object, 91, 98
   storing configuration settings, 471
AspCompat attribute, @ Page directive, 509, 517
ASP Intrinsic objects, Page class, 209
ASP.NET
   Access database and, 298
   application deployment. See application deployment
   application state, 92
   attributes, 415
   caching features, 441
   classic ASP and, 30
   code-behind, 35-36
   code writing in, 211
   configuration elements. See configuration elements
   controls, 44-45
   error messages, 496
   event handlers, 45
   event model, 369
   execution model, 220
   file types, 37-38
   migrating from ASP, 507-9
   mobile features, 36-37, 270-76
   new features, 31-32
   project types, 33-34
   security. See security
   server control state, 111
   server-side data binding, 323
   session state, 99, 103
   side-by-side execution, 128
   Web applications. See Web applications
   Web Forms. See Web Forms
   Web pages, 46-47
   Web services. See Web services
   Windows authentication and, 185
ASPNET account, 288-90
ASP.NET configuration, 113-30. See also Web.config
   404 handler, 118-23
   applications, 118
   <httpModules>, 123-26
   locking down, 127
   overriding subdirectory settings, 126
   overview of, 113-15
   running ASP.NET applications against .NET Framework versions, 128-29
ASP.NET Mobile Web Application Project, 270
.aspx files, 37, 189, 484
assemblies
   defined, 5
   deploying, 474-75
   managed, 5, 415
   private, 362
   shared, 362, 480
   updating, 475
   versions, 475
<assemblies> child element, <compilation>, 206, 530
assembly attribute, <compilation> element
   <add> child element, 531
   <remove> child element, 531
Assembly attribute, @Register directive, 205
<assemblyBinding>, 128
@ Assembly directive, Web Forms, 205-6
AssemblyName, Web services, 413
AssemblyVersionAttribute attribute, 362
Assert method, Debug class, 496, 503
AttachDBFilename, SqlConnection connection string keys, 284
attacks. See malicious users
attributes
   @Assembly directive, 206
   case sensitivity, 232
   @Control directive, 203-4
   @Implements directive, 204
   @Import directive, 204
   metadata attributes, 415
   @OutputCache directive, 207-8
   @Page directive, 195-98
   @Register directive, 205
Attributes collection, HTML controls, 231
Attributes collection, server controls, 277
attributes, configuration elements, 519-60
   <appSettings>, 560
   <authentication>, 537-40
   <authorization>, 542-43
   <browserCaps>, 558-59
   <clientTarget>, 557
   <compilation>, 526-31
   <customErrors>, 534-36
   <globalization>, 521
   <httpHandlers>, 548-50
   <httpModules>, 551
   <httpRuntime>, 523
   <identity>, 541
   <machineKey>, 543-44
   <pages>, 532-34
   <processModel>, 553-56
   <securityPolicy>, 544-45
   <sessionState>, 547
   <trace>, 520
   <trust>, 546
   <webControls>, 557
auditing, 159
authentication, 165-84
   access control and, 158
   configuring Windows authentication, 168-69
   Forms-based, 170-77, 185
   IIS methods, 167-68
   Passport, 169, 185
   selecting type, 166
   Web services, 428-29
   Windows-based, 166-67, 185
<authentication> element
   attributes, 537-40
   configuring Forms authentication, 173
   configuring Windows authentication, 168-69
   overview of, 536-37
Authentication Methods dialog box, 167-68
authorization
   access control and, 158
   ACL-based, 178-79
   locking down settings, 185
   URL-based, 179-81
<authorization> element
   ACL-based authorization and, 178-79
   attributes, 542-43
   configuring Forms authentication, 173
   overview of, 541
   RegLogin control, 391
   URL-based authorization and, 179-81
Authors.xsl, code example, 295-96
AuthSuccess event handler, 398
autoEventWireup attribute, <pages> element, 532
Auto Format dialog box, 332-33, 516
Auto HIDE, Visual Studio .NET, 17
automatic postbacks, 74

B
base classes
   inheritance, 354-55, 407
   overriding Render method, 355
BaseValidator class, 264
basic authentication, 166, 428
Batch attribute, <compilation> element, 526
batch files, proxy class compilation, 434
BatchTimeout attribute, <compilation> element, 526
block-level variables, 56
boolean data type
   enumerations and, 53
   IsEnabled property, 488
   primitive data types, 422
   RegLogin control, 375
BoundColumn control, 332
boxing/unboxing data types, 54
Breakpoint Properties dialog box, 502
breakpoints, 498, 501-2, 504
break statements, 69
<browserCaps> element, 558-59
browser sniffing, 257
Browse With option, Solution Explorer, 122, 125
Buffer attribute, <pages> element, 532
bugs. See debugging
Building Web Solutions with ASP.NET (Esposito), 279
Build menu
   Configuration Manager, 494
   overview of, 28
   username page, 177
ButtonColumn control, 332
Button control, 248
<button>, HTML element, 230
ByRef parameters, 517
ByVal parameters, 517

C
C#. See Visual C# .NET
C, compared with C#, 7-8
C++
   compared with C#, 7-8
   object-orientation programming, 83
   scope and, 57-58
cache API, 441-42, 456
CacheAutors.aspx, 453-56
Cache class
   Add method, 457
   Insert method, 457
   Remove method, 456
CacheDependency, 457-59, 463
CacheItemPriority, 457
Cache property, Page class, 210
caching
   APIs for, 441, 456
   ASP.NET new features, 31
   CacheDependency, 457-59, 463
   consuming, 460-63
   datasets, 453-56, 463
   defined, 441
   expiration, 456-57
   multiple versions of output, 449-52
   output caching, 442-44, 463
   overview of, 441-42
   Response.Cache, 452
   scavenging, 456-57
   triggers for updating, 460
   updating cache data, 459-60
   user controls, 447-49, 463
   Web Forms, 445-46
Calendar control, 260-63
Cascading Style Sheets (CSS)
   adding styles to controls, 244-45
   layout modes and, 42
<case> child element, <browserCaps>, 559
case sensitivity, 55, 232
catalogs, SqlConnection connection string keys, 285
catch blocks, 79-80, 388-89
CD-ROMs, installation
   MSDN Library documentation, 571-75
   Visual Studio .NET, 567-70
   Visual Studio .NET Prerequisites, 562-67
char data type, 52, 53
Class attribute, Web services, 413
classes
   custom server controls, 353-54
   defined, 50
   inheritance, 6
   namespaces, 5
   object-oriented programming, 84
   Page class, 6
   RegLogin example, 374
   Web services, 414
class keyword, 354
class library, .NET Framework, 5-6
ClassName attribute
   @Control directive, 213-14
   Web services, 413
Class View, Visual Studio .NET windows, 20
<clear> child element
   <appSettings>, 560
   <assemblies>, 530
   <clientTarget>, 557
   <httpHandlers>, 550
   <httpModules>, 551
ClearChildViewState method, Page class, 210
Clear method, Session object, 100
clientConnectedCheck attribute, <processModel>, 553
clientScriptsLocation attribute, <webControls>, 557
client-side
   <script> blocks, 191
   cookies, 109-10
<clientTarget> element, 557
Close method, DataReader, 322-23
CLR (common language runtime), 4-5, 413
CLS (Common Language Specification), 51-52
code
   <% %> render blocks, 212-13
   access security, 182-83
   ASP.NET applications, 50
   codeless development, 74
   compiling, 46
   event handlers, 45
   managed, 5
   migration process and, 508-9
   MSDN documentation, 177
   <script> code declaration blocks, 211-12
   searching for sample code, 11-12
   writing, 211, 492
code-behind
   advantages of, 35-36
   pros/cons, 251
   Web application deployment and, 473-74
   Web Forms and, 45
   Web services and, 414
codebehind class, 362
code-behind module, 223-24
code declaration blocks
   ASP.NET page elements, 191
   migration process and, 508
   <script>, 211-12, 517
columns
   DataColumn class, 302-3
   DataColumnCollection, 309
   declarative creation of, 332
   iterating over collection, 309-11
comAuthenticationLevel attribute, <processModel>, 553
COM components, 410, 474, 475
comImpersonationLevel attribute, <processModel>, 553
Command classes, ADO.NET
   OleDbCommand class, 296-98
   overview of, 290
   SqlCommand class, 290-96
Command control, Mobile Web Forms, 271
command-line
   commands (xp_cmdshell), 145
   compilers, 434
Command window, Visual Studio .NET, 16
common language runtime (CLR), 4-5, 413
Common Language Specification (CLS), 51-52
CompareValidator control, 265, 269-70
compatibility
   ASP classic with ASP.NET, 213
   AspCompat attribute, @Page directive, 509, 517
   MSDE, 298
<compilation> element
   <assemblies> subsection, 206
   attributes, 200, 494, 526-30
   overview of, 525
compiled controls. See server controls
<compiler> child element, <compilation>, 528-30
compilerOptions attribute, <compilation>, 529
<compilers> child element, <compilation>, 528
components. See assemblies
compositional controls, 403
conditional logic
   if statements, 66-68
   switch case statements, 68-69
configuration elements, 519-60
   <appSettings>, 559-60
   <assemblies>, 530-31
   <authentication>, 536-40
   <authorization>, 541-43
   <browserCaps>, 558-59
   <clientTarget>, 557
   <compilation>, 525-30
   <customErrors>, 534-36
   <globalization>, 520-21
   <httpHandlers>, 548-50
   <httpModules>, 550-51
   <httpRuntime>, 522-24
   <identity>, 540-41
   <machineKey>, 543-44
   <pages>, 531-34
   <processModel>, 552-56
   <securityPolicy>, 544-45
   <sessionState>, 546-47
   <trace>, 519-20
   <trust>, 545-46
   <webControls>, 557
configuration files. See also machine.config; Web.config
   <appSettings>, 481
   ASP.NET new features, 31
   editing with Visual Studio .NET, 116
   locking down settings, 127
   overview of, 113-15
Configuration Manager, 201-2
Connection Lifetime, SqlConnection connection string keys, 285
Connection Reset, SqlConnection connection string keys, 285
ConnectionString property, SqlConnection class, 284
Connect Timeout, SqlConnection connection string keys, 284
console applications, 14
constants, 59-60
containers, Visual Studio .NET, 13
content deployment, 473-74, 481
ContentType attribute, @Page directive, 196
contractRef node, .disco files, 426
Control class
   compositional controls and, 403
   lack of UI-related features in, 355
   Render method and, 377
   specialization of controls, 352
@Control directive, Web Forms, 203-4
controls. See also server controls; user controls
   adding at runtime, 226-27
   case sensitivity, 232
   Controls collection, 209, 225
   data binding to, 325-26
   event execution order, 372-73
   event handlers, 223-24
   manipulating at runtime, 226-27
   viewing control tree, 225
Controls collection
   AddAt method, 240
   child controls and, 225
   manipulating controls in, 404
   Page class, 209
ControlToValidate property, BaseValidator class, 264
cookieless attribute, <sessionState>, 547
cookies
   ASP classic limitations and, 99
   client-side, 109-11
   cookieless sessions, 108-9, 112
   nonpersistent, 110
   persistent, 110-11
   storing session state in, 105
   trace output and, 486
copy project command, 477
Copy Project dialog box, 477
Count property, Application Collection, 93
Count property, Session object, 100
cpuMask attribute, <processModel>, 554
CPUs, demands on, 442
CreateBlankUsersFile, 386
CreateChildControls method, 352-53, 403-4
<credentials> child element, <authentication>, 539
cross-site scripting (XSS) attacks, 153, 184
csc.exe, 314
.cs files, 37
CSS (Cascading Style Sheets)
   adding styles to controls, 244-45
   layout modes and, 42
CssClass, 245
culture attribute, <globalization>, 521
Culture attribute, @Page directive, 196
currency formats, 366
<customErrors> element, 534-35
customization options, Visual Studio .NET, 28-29
Customize Toolbox dialog box, 359
CustomValidator control, 265

D
DataAdapter
   objects, 301-2
   SqlDataAdapter class, 281, 423
Data Adapter Configuration Wizard, 316-18
databases. See also ADO.NET
   Microsoft Access, 286
   MSDE, 283
   ODBC, 287
   OLE DB, 347
   Oracle, 286
   SqlConnection connection string keys, 285
DataBinder.Eval method, 327
data binding, 323-27. See also DataBound controls
   controls, 270, 325-26
   DataBinder.Eval method, 327
   early binding vs. late binding, 62-65
   overview of, 323-24
   server-side, 323
   simple, 324-25
DataBinding events, 371
DataBind method, 323, 347
DataBound controls. See also data binding
   binding to DataGrid, 329-32
   binding to DataList, 341-44
   DataGrid, 270, 328
   DataList, 270, 341
   deleting from DataGrid, 339-41
   editing DataGrid, 339-41
   formatting DataGrid, 332-36
   overview of, 327-28
   Repeater, 270, 344-47
   sorting DataGrid, 336-38
   types of, 270
DataColumnCollection, 309
DataColumn objects, 302-3
DataColumns class, 309-11
data forgery, 133
DataGrid control, 239
   ASP.NET enhancements, 270
   binding arrays to, 329-30
   binding live data to, 330-32
   built-in supports, 517
   deleting data, 339-41, 347
   editing data, 339-41, 347
   formatting, 332-36
   overview of, 328
   sorting, 336-38
DataList control
   ASP.NET enhancements, 270
   binding to, 341-44
   event handlers, 343-44
   overview of, 341
   RepeatColumns attribute, 347
   templates, 343
data loss, 133
Data Providers, .NET, 280-82, 287
DataReader
   ADO.NET, 517
   displaying read-only data, 347
   OleDbDataReader, 323
   overview of, 322
   SqlDataReader, 322-23
DataRelation, 308
DataRow, 302-8, 309-11
DataRowCollection, 309
DataSet
   accessing values, 308-9
   ADO.NET, 282-83, 301
   caching, 453-56, 463
   functions of, 301
   overview of, 282-83
   populating, 301-8, 347
   relationships, 308
   strongly typed, 313-21
   updating, 312-13
   Web services and, 422
   working with, 301
   XML and, 283
Data Shaping Service for OLE DB, 323
data sources, 282, 285. See also databases
DataTable
   accessing values, 308
   DataViews and, 321-22
   iterating over collection, 309-11
   properties, 282
DataTableCollection, 308-11
data types, 51-54
   list of, 51-52
   .NET, 52
   primitive types, 422
   reference types, 53-54
   TextTypes, 365
   value types, 52-54
   Visual Basic .NET, 52
   Visual C# .NET, 52
   Web services and, 412
DataView, 321-22
date data type, 53
DbgCLR.exe, 496
DCOM (Distributed COM), 410
DDoS (Distributed Denial of Service), 132
Debug.Asset, 496, 503-4
Debug attribute, <compilation> element, 494, 526
Debug attribute, @Page directive, 196
debug attribute, @Page directive, 199, 200-202
Debug class, 496
debuggers
   .NET Framework SDK, 484, 496
   runtime debugger, 504
   types of, 483-84
   Visual Studio .NET, 484, 496-503
debugging
   ASP classic, 483
   breakpoints, 504
   categories, 491-92
   Debug.Asset, 503-4
   disabling, 504
   divide-by-zero exceptions, 493-95, 497-503
   error messages, 496
   preventing bugs, 492-93
   Web Forms pages, 493
Debug mode, 493
debug symbols
   disabling, 200-202
   enabling, 199
   .NET Framework SDK debugger and, 496
Debug toolbar, 27
decimal data type, 52
decimal formats, 366
decision structures, 66. See also if statements
declarative techniques
   column creation, 332
   output caching, 442
   server controls, 238-39
   user controls, 217-19
declaring variables. See variable declaration
decrement assignment operator (-=), 59
decrement operator (-), 59
decryption key attribute, <machineKey>, 543-44
DefaultLanguage attribute, <compilation>, 527
default namespace, Web services, 439
defaultRedirect attribute, <customErrors>, 534
default statements, 69
DefaultValue attribute, 365
demilitarized zone (DMZ), 155
Denial of Service (DoS), 131-33
<deny> child element
   roles attribute, 542
   users attribute, 180, 542
   verbs attribute, 180-81, 543
deploying ASP.NET applications. See application deployment
Description attribute, @Page directive, 196
Designer/Source Editor window, Visual Studio .NET, 19-20
Designing Secure Web-Based Applications for Microsoft Windows 2000 (Howard), 133
Destination Folder page, MSDN Library documentation, 573
DeviceSpecific control, Mobile Web Forms, 272
digest authentication, 166-67
directives
   ASP classic, 194
   @Assembly, 205-6
   @Control, 203-4
   @Implements, 204
   @Import, 204, 227
   migration from ASP classic, 508
   @OutputCache, 206-9
   overview of, 191, 194
   @Page, 194, 195-98, 199-203, 227
   @Reference, 209-11
   @Register, 205
   using directive, 249
directories
   overriding subdirectory settings, 126
   target directory for application deployment, 473-75
   tempDirectory attribute, 528
   verifying directory is application root, 481
   Web services, 425
disco.exe, 430
.disco files, 426, 430
discovery documents, 425-26, 430
discoveryRef node, .disco files, 426
discovery, Web services, 425
Display property, BaseValidator, 264
Dispose phase, event execution order, 373
Distributed COM (DCOM), 410
Distributed Denial of Service (DDoS), 132
divide-by-zero exceptions
   debugging, 497-503
   viewing, 493-94
   viewing debugging enabled, 494-95
.dll files, 393
DMZ (demilitarized zone), 155
DoS (Denial of Service), 131-33
dotNetFramework, 480
dotnetfx.exe, 480
double data type, 52
do...while loops, 76
DropDownList control, 368
durability
   application state, 97
   ASP classic and, 98
Duration attribute, @OutputCache directive, 207, 443-44
Dynamic Help, Visual Studio .NET, 18-19

E
early binding vs. late binding, 62-65
   function overloading and, 62-63
   overview of, 62
   returning values from functions, 63-65
EditButtonColumn control, 332
Edit menu, 27
Edit System Variable dialog box, 579
elements, 116, 190-92. See also configuration elements
else statements, 67
e-mail capacity, adding to Web applications, 246-51
Enable attribute, <processModel>, 554
EnableClientScript property, BaseValidator, 264
enabled attribute, <trace>, 520
Enabled property, BaseValidator, 264
enableKernelOutputCache attribute, <httpRuntime>, 523
EnableSessionState attribute, @Page directive, 196
enableSessionState attribute, <pages>, 533
enableVersionHeader attribute, <httpRuntime>, 523
enableViewState attribute, <pages>, 533
EnableViewStateMac attribute, @Page directive, 196
enableViewStateMac attribute, <pages>, 402, 533
encapsulation, 84
encryption
   password storage and, 149
   SSL, 165, 428
end user license agreement (EULA), 568
enumerations
   declaring, 60
   RegLogin example, 375
   as value data type, 53
Environment Variables, 579
equality operator (==), 59
error handling
   adding, 80-82
   checking return values, 78
   error types, 77
   structured, 78-80
   throwing exceptions, 79
   Web Form pages, 224
ErrorMessage property, BaseValidator, 264
error messages
   ASP classic, 483-84
   ASP.NET, 496
ErrorPage attribute, @Page directive, 196
errors
   404-Not Found errors, 118-23
   logic errors, 492
   runtime errors, 491-92
   semantic errors, 491
   syntax errors, 491
   types of, 77
<errors> child element, <customErrors>, 535-36
EULA (end user license agreement), 568
EventArgs, 369, 371
event-based programming, 508
event handlers
   ASP.NET, 191, 369-70
   controls, 223-24
   DataGrid controls, 339-40
   DataList controls, 343-44
   overview of, 220-21
   Page_Error, 224
   Page_Load, 220
   postbacks, 382
   server controls, 370-71
   Web applications, 45
   Web Form pages, 221-23, 227
event keyword, 370
EventName, 370-71
events
   creating, 369-70
   execution order, 372-73
   overriding inherited, 371-72
   raising, 369-70
   RegLogin example, 382-86
exception handling. See error handling
ExecuteReader method, SqlDataReader, 322
ExecuteScalar method, OleDbCommand, 296
ExecuteXmlReader, 294
execution Timeout attribute, <httpRuntime>, 523
exiting Visual Studio .NET, 29-30
expiration, caching, 456-57
Explicit attribute, 196, 527
expressions, 50-51
extension attribute, <compilation>, 529

F
FAT (File Allocation Table), 134
fileEncoding attribute, <globalization>, 521
file extensions, 13, 393
File menu, 27, 47
files, saving, 43, 47
file systems
   FAT (File Allocation Table), 134
   NTFS (NT File System), 178
   security, 134
<filter> child element, <browserCaps>, 559
finally blocks, 78-80, 388-89
FindControl method, 404
Find method, 322
firewalls, 154
float data type, 52
flow control, 65-77
   if statements, 66-68
   looping statements, 74-77
   switch case statements, 68-74
FlowLayout
   changing pageLayout to, 359
   custom controls, 363
   DataSet caching, 453
   user controls, 447
   Web Forms, 42
foreach...loops, 76
ForeColor property, BaseValidator, 264
forgery, 133
for...loops, 75
FormatCurrency method, 366
Format method, 366
Formatting toolbar, 27
Form control, Mobile Web Forms, 271
<form>, HTML element, 230
Forms Authentication, 170-77
   authentication cookies and, 165
   configuring, 173-74
   enabling, 185
   login page, 170-73
   overview of, 170
   passwords and, 149
   RegLogin example, 390-95
   username page, 174-77
FormsAuthentication class, 170, 175
<forms> child element, <authentication>, 174, 538-39
FPSE (FrontPage Server Extensions), 562
FTP Service
   port security, 154
   vulnerabilities, 135
fully qualified URLs, 522
functions. See also methods
   C# methods, 61
   overloading, 62-63
   returning values from, 63-65

G
GAC (Global Assembly Cache), 362, 474-75
gacutil.exe, 362, 475
GetAuthors2.aspx, 516-17
GetAuthors.asp, 510-13
GetKey method, Application Collection, 93
Get method, Application Collection, 93
GET requests, 449
Global.asax files, 37-38, 93, 469-70
global assemblies
   deploying, 474-75
   updating, 475
   versions, 475
Global Assembly Cache (GAC), 362, 474-75
<globalization> element, 520-21
GridLayout mode, Web Forms, 42

H
hackers. See malicious users
Handles keyword, 223
HashPasswordForStoringInConfigFile, 149
headers, Repeater controls, 344-47
HeaderTemplate, 344
HelloSimple.aspx, 189-90
HelloWorld, Web services, 417-21
Help menu, 28
hisecweb.inf, 143
Howard, Michael, 133, 152, 183
HtmlAnchor control, 230
HtmlButton control, 230
HtmlControl class, 231
HTML controls, 229-36
   add/remove list items dynamically, 234-37
   Attributes collection, 231
   examples, 233-34
   mapping to HTML elements, 229-31
   ServerChange events, 232
   ServerClick events, 232
   server controls, 225, 277
HTML editor, 17
HTML elements, 230
HtmlForm control, 230
HtmlGeneric Control, 231
HTML (Hypertext Markup Language)
   constructing programmatically, 376
   deploying static content, 473
   mapping elements to control, 230-31
   migrating from static HTML, 232
   rendering controls and, 353
   SGML basis of, 115
   static HTML, 191
HtmlImage control, 230
HtmlInputButton control, 230, 248
HtmlInputCheckBox control, 230
HtmlInputFile control, 230
HtmlInputHidden control, 230
HtmlInputImage control, 230
HtmlInput RadioButton control, 231
HtmlInputText control, 231
HtmlSelect control, 231
HtmlTableCell control, 231
HtmlTable control, 231
HtmlTableRow control, 231
HtmlTextArea control, 231
HTMLTextWriter class, 376, 380
HttpCachePolicy class, 452
<httpHandlers> element, 487, 548-50
HTTP (Hypertext Transfer Protocol)
   POST requests, 181, 368
   stateless nature of, 91
   Web services and, 410-11
<httpModules> element, 123-26, 550-51
<httpRuntime> element, 522-24
HyperlinkColumn control, 332

I
IBM, UDDI registry, 427
IDE (integrated development environment). See also Visual Studio .NET
   for .NET languages, 7
   preventing bugs and, 492-93
<identity> element
   attributes, 181-82, 541
   overview of, 540
idleTimeout attribute, <processModel>, 554
IDL (Interface Distribution Language), 410
IE (Internet Explorer)
   browsing cached pages, 448-49
   browsing pages, 125
   browsing Web services, 419, 423, 437
   finding errors, 122
if statements, 66-68
   else statements and, 67
   predicates, 66-67
   syntax for, 68
IIS (Internet Information Services)
   application deployment, 475-76
   ASP.NET and, 129, 165
   changing authentication method, 167-68
   COM components and, 475
   configuring as an application, 466-69
   installing, 562
   Internet Services Manager, 160, 167, 481
   logging, 159-60
   MMC snap-in, 159-60, 392, 466
   Web services authentication, 428-29
IL (Intermediate Language). See MSIL (Microsoft Intermediate Language)
<img>, HTML element, 230
impersonate attribute, <identity>, 541
impersonation, 133, 181-82, 287
@Implements directive, 204
@Import directive, 204, 227
INamingContainer interface, compositional controls, 403-4
include files, compared to user controls, 220
increment assignment operator (+=), 59
increment operator (++), 59
inequality operator (!=), 59
inheritance
   across languages, 87
   base classes, 354-55, 407
   defined, 83
   .NET Framework and, 6
   object-oriented programming, 85-87
   overriding, 371-72
   RegLogin example and, 374
   specialization of controls, 352
   WebService class, 414
Inherits attribute, 197, 473
Inherits keyword, Web services, 414
Init
   events, 371
   Web Form pages, 221
Initialize phase, event execution order, 372
InProc (in-process), session state, 105-7
In Progress page, MSDN Library documentation, 574
<input type=>, HTML element, 230
Insert method, Cache class, 457
installation packages, Web Setup project, 481
Install dialog box, 569
int data type, 52, 54, 422
integrated development environment. See IDE (integrated development environment)
integrated Windows authentication. See Windows authentication
IntelliSense, 320
interface attribute, @Implements, 204
Interface Distribution Language (IDL), 410
Intermediate Language (IL). See MSIL (Microsoft Intermediate Language)
internal keyword, 58
Internet Explorer. See IE (Internet Explorer)
Internet Information Services. See IIS (Internet Information Services)
Internet Information Services snap-in, 159-60, 392, 466
Internet security, 131
Internet Services (IIS) Manager
   changing authentication method, 167
   enabling logging, 160
   verifying directory is application root, 481
IPostBackDataHandler, 382
IPostBackEventHandler, 382
IP Security Policy Management snap-in, 154
IsEnabled, boolean property, 488
IsPostBack, Page class, 209, 366
IsValid, BaseValidator class, 264

J
Jscript .NET, 432

K
key attribute, <appSettings>, 560
Keys property, Session object, 100
keywords
   class, 354
   event, 370
   Handles, 223
   Inherits, 414
   internal, 58
   namespace, 353, 354, 365
   private, 58, 375
   protected, 58
   public, 58
   ref, 510
   throw, 79

L
Label controls
   adding e-mail capacity to Web applications, 247
   applying styles to server controls, 245-46
   binding data to, 325-27
   registration wizard and, 256
LabelText, TextBox controls, 357, 360
language attribute
   <compilation>, 529
   <script>, 212
Language attribute, @Page directive, 197
@Language directive
   ASP classic, 194
   migration process and, 508
languages
   inheritance across, 87
   migrating ASP to ASP.NET, 509-10
   multiple, 517
   .NET, 6-7
   third-party, 7-8
late binding. See early binding vs. late binding
LCID attribute, @Page directive, 197
LeBlanc, David, 152
Let statements, ASP to ASP.NET migration, 509
level attribute, <trust>, 546
license agreements
   EULA (end user license agreement), 568
   MSDN Library documentation, 572
lifetime
   guidelines, 58
   variable declaration, 55-56
   Web Form pages, 192-94
Link control, Mobile Web Forms, 271, 272
list items, adding/removing dynamically, 234-37
lists
   data binding and, 270, 341-44
   DataList control, 341
   templates, 343
LiteralControl, server controls, 225
Load
   event execution order, 373
   events, 371
   Web Form pages, 221
LoadPostData
   event execution order, 372
   postback event handlers, 382-83
   postback phases, 368-69
   state maintenance and, 401
   Web Form pages, 221
LoadViewState
   event execution order, 372
   Web Form pages, 221
localhost, 471
localOnly attribute, <trace>, 520
Local Security Policy editor, 138
Location attribute, @OutputCache, 207, 443-44, 447
<location> element
   allowOverride attribute, 180
   path attribute, 179, 180
   RegLogin example, 391
<location> tag, 127
locking down
   ASP.NET configuration, 127
   authorization settings, 185
Lock method
   application state, 94
   misuse of, 104
logging
   defined, 159
   enabling in IIS, 159-60
   Web sites, 184
logic errors, 77, 492, 496
Login control. See RegLogin control
login security, Web services, 428
loginURL attribute, <authentication>, 537
logLevel attribute, <processModel>, 554
long data type, 52, 422
long-term migration, 514
looping statements, 74-77
   do...while loops, 76
   foreach...loops, 76
   for...loops, 75
   types of, 74
   while...loops, 76-77

M
machine.config
   appSettings, 472
   editing, 117
   master permissions, 180
   overview of, 113-14
   password information stored in, 149
<machineKey> element, 543-44
MailMessage class, 246
malicious users
   tracing and, 486
   ViewState and, 402
managed assemblies
   attributes, 415
   defined, 5
   deploying, 474
managed code, 5
manifests, of assemblies, 5
manual application deployment, 473-76
manul creation of typed datasets, 314-15
master configuration file. See machine.config
match attribute, <browserCaps>, 559
maxBatchGeneratedFileSize attribute, <compilation>, 527
maxBatchSize attribute, <compilation>, 527
maxIoThreads attribute, <processModel>, 554
Max Pool Size, SqlConnection connection string keys, 285
maxRequestLength attribute, <httpRuntime>, 524
maxWorkerThreads attribute, <processModel>, 554
MBSA (Microsoft Baseline Security Analyzer)
   identifying/removing sample applications, 152
   removing unnecessary services, 135
   scanning for patches, 156-58
member variables, RegLogin control, 375
memory, application state and, 98
memoryLimit attribute, <processModel>, 554
menus, Visual Studio .NET, 27-28
metadata attributes, Web services, 415
methods, 60-62. See also functions
   application objects, 93
   cache API, 442
   defined, 60
   event execution order, 372-73
   input parameters, 61-62
   overriding postback methods, 368
   parentheses required for, 509
   server controls, 366-67
   session objects, 100
Microsoft Access, 286, 297-98
Microsoft ADO.NET. See ADO.NET
Microsoft Baseline Security Analyzer. See MBSA (Microsoft Baseline Security Analyzer)
Microsoft Developer Network site, 49
Microsoft documentation. See MSDN Library
Microsoft FrontPage Server Extensions, 562
Microsoft Intermediate Language (MSIL), 4-5
Microsoft Management Consoles. See MMC (Microsoft Management Console)
Microsoft .NET, See .NET
Microsoft Notepad, 7, 356
Microsoft Passport. See Passport authentication
Microsoft Product Security Notification service, 156
Microsoft TechNet site, 133, 183
Microsoft UDDI registry, 427, 431
Microsoft Visual C# .NET. See Visual C#.NET
Microsoft Visual Studio .NET. See Visual Studio .NET
Microsoft Windows 2000. See Windows 2000
Microsoft Windows 9x. See Windows 9x
Microsoft Windows applications, 14
Microsoft Windows authentication. See Windows authentication
Microsoft Windows Installer. See Windows Installer
Microsoft Windows Server 2003. See Windows Server 2003
Microsoft Windows XP. See Windows XP
Microsoft XML Web Services Developer Center, 429, 438
migrating ASP to ASP.NET
   GetAuthors2.aspx, 516-17
   GetAuthors.asp, 510-13
   language changes, 509-10
   long-term migration, 514
   making ASP pages work, 514-15
   page structure, 507-9
   short-term migration, 513
minFreeThreads attribute, <httpRuntime>, 524
minLocalRequestFreeThreads attribute, <httpRuntime>, 524
Min Pool Size, SqlConnection connection string keys, 285
MMC (Microsoft Management Console)
   custom consoles, 139
   Internet Information Services snap-in, 159-60, 392, 466
   security tools, 138
mobile Web applications, 32, 33-34, 36-37
Mobile Web Forms controls, 270-76
   creating Mobile Web Forms page, 272-76
   list of new controls, 271-72
   overview of, 270
mode attribute
   <authentication>, 537
   <customErrors>, 535
   <sessionState>, 547
module-level variables, 56
modules, 50
modulus operator (%), 59
MSDataShape, OLE DB Provider, 323
MSDE
   ASP.NET and, 298
   compatibility of, 298
   databases, 283
   installing, 577-78
   password storage, 149
   sa account and, 145-48, 184
   VSdotNET instance of, 289
MSDN Library
   coding conventions, 177
   installing, 571-75
   storing sensitive data, 472
   Visual C# .NET resources, 50
MSDN Library Setup Wizard, 571-75
MSIL (Microsoft Intermediate Language), 4-5
MTA (multi-threaded apartment) process, 509
Multilanguage IDE, 16
multi-threaded apartment (MTA) process, 509

N
name attribute
   <add> child element, <httpModules>, 551
   <forms> child elements, <authentication>, 537
   <remove> child element, <httpModules>, 551
   <securityPolicy>, 545
   <user> child element, <httpModules>, 539
Name attribute, @Assembly, 205-6
Namespace attribute
   @Import directive, 204
   @Register directive, 205, 353
namespace keyword, 353, 354, 365
namespace-level variables, 56
NamespaceName attribute, Web services, 413
namespaces
   case sensitivity, 232
   defined, 50
   grouping classes by, 84
   .NET classes, 5
   scope and, 57
   server controls, 353
naming conventions
   preventing bugs, 492
   variables, 56
National Security Agency (NSA), 133, 183
.NET, 3-8
   base classes, 87
   C#, 7-8
   common language runtime, 4-5
   Data Providers, 280-82, 287
   data types, 52
   inheritance, 6
   .NET Framework, 4-6
   .NET Framework class library, 5-6
   .NET languages, 6-8
   overview of, 3-4
   text editors, 7
   Visual Studio .NET, 7
.NET Framework, 4-6
   attributes, 415
   class library, 5-6
   common language runtime, 4-5
   inheritance, 6
   object-oriented programming and, 83
   overview of, 4
   running ASP.NET applications against, 128-29
   side-by-side execution, 128
   version 1.1, 565
.NET Framework SDK
   ADO.NET resources, 279
   debugger in, 484, 496
   tools for creating custom controls, 356
.NET languages, 6-8
   text editors, 7
   Visual C# .NET, 7-8
   Visual Studio .NET, 7
Net, SqlConnection connection string keys, 285
network addresses, SqlConnection connection string keys, 285
Network Library, SqlConnection connection string keys, 285
New Project dialog box, 39, 47
newsgroups, for developers, 49
Next_Click event handler, 256
ngen.exe, 5
nonpersistent cookies, 110
Notepad
   custom controls, 356
   development with, 7
NSA (National Security Agency), 133, 183
NTFS (NT File System)
   ACLs (access control lists), 178
   security and, 134
numeric data types, 52
numRecompilesBeforeAppStart attribute, <compilation>, 527

O
object data type, 52
Object data type, 52, 53, 509
ObjectList control, Mobile Web Forms, 272
object-oriented programming, 83-87
   classes, 84
   inheritance, 85-87
   overview of, 83-84
objects, defined, 83
ODBC databases, 287
OleDbAdapter class, 281
OleDbCommand class, 281, 296-98
OleDbConnection class, 281, 286-87
OLE DB database, 347
OleDbDataReader class, 281, 323
OLE DB.NET Data Provider, 280-81, 323
Open Project dialog box, 12-13
operating systems. See OSs (operating systems)
operators, 59
Options dialog box, 28-29
Oracle database, 286
originURL attribute, <trust>, 546
oSql utility
   installing MSDE, 577-78
   setting up ASPNET account, 289-90
OSs (operating systems)
   IIS support, 561-62
   selecting, 134
   server functions and, 135
out-of process (StateServer), 105
@OutputCache directive
   attributes, 207-8, 443-44, 463
   combining with user controls, 213
   declarative caching with, 442
   enabling output caching, 208-9
   overview of, 206
   user controls, 447-49
   Web Forms, 227, 445-46
output caching. See also caching
   declarative means for, 442
   multiple versions of output, 449-52
Output window, Visual Studio .NET, 23
override modifier, 85


Next



Last Updated: April 15, 2003
Top of Page