CARVIEW |
Cover | Table of Contents | Index | Sample Chapter | Colophon
Index
[ Symbols ], [ Numbers ], [ A ], [ B ], [ C ], [ D ], [ E ], [ F ], [ G ], [ H ], [ I ], [ J ], [ K ], [ L ], [ M ], [ N ], [ O ], [ P ], [ Q ], [ R ], [ S ], [ T ], [ U ], [ V ], [ W ], [ X ], [ Y ]
Symbols[ Top ]
@ (at sign), creating verbatim strings, 503
= (equal sign) and attribute/value pairs, 237
> (greater-than) default value for NextMonthText property, 248
(greater-than-or-equal-to) navigation symbol, 148, 150
(greater-than-or-equal-to twice) navigation symbol, 151
< (less-than) default value for PrevMonthText property, 248
? (less-than-or-equal-to) navigation symbol, 148
? (question mark)
conditional operator, 578
query strings and, 389
<%# syntax, 388
Numbers[ Top ]
{0} symbol (substitution parameter), 371
A[ Top ]
<a> tag, 46
HyperLink controls and, 71
AboveNormal value (CacheItemPriority enumeration), 787
AbsBottom value (ImageAlign property), 137
AbsMiddle value (ImageAlign property), 137
absolute URLs and ImageUrl property, 137
AbsoluteExpiration parameter (Add/Insert methods), 784-786
AcceptChanges( )
DataRow class, 433
DataSet class, 431
DataTable class, 432
AcceptChangesDuringFill property (DataAdapter class), 433
Accepted value (Status field), 905
Access Control Lists (ACLs) and file authorization, 830
Access database, using bug database with, 438-441
access modifiers, 201
AccessKey property, 55
ACID test, requirements of transactions, 505
ACLs (Access Control Lists) and file authorization, 830
<Ad> tag (AdRotator control), 143
AdCreated event (AdRotator control), 142, 146
AdCreatedEventArgs class, 146
Add Reference/Add Web Reference options (Solution Explorer), 740
<add> section of <httpHandlers> section, 877
Add( )
adding columns to DataTable objects, 469, 471
Cache class method, 774
CacheItemRemovedCallback parameter, 787
scavenging via Priority parameter, 786
time dependencies, 784
overloading, 90, 474
address breakpoint, 280
AddressOf keyword (VB.NET), 793
ADO.NET, 3
accessing data with, 425-494
code example, 435
using Access, 439
DataGrid control, creating, 441-468
getting started with, 434-438
managed providers available with, 438-441
object model, 429-434
adProperties dictionary, 143
AdProperties property (AdCreateEventArgs class), 147
AdRotator control, 140-147
C# code example, 144
VB.NET code example, 145
advertisement files, 142-147
AdvertisementFile property (AdRotator control), 141
<Advertisements> tag (AdRotator control), 143
aliases for browsers, 874
<allow> section of <authorization> section, 832, 882
AllowCustomPaging property (DataGrid control), 424
AllowDBNull property (DataColumn class), 470
AllowPaging attribute (DataGrid control), 423
AllowSorting attribute (DataGrid control), 415
<altDB> tag, 886
AlternateText property
AdCreateEventArgs class, 147
Image control, 136
<AlternateText> tag (AdRotator control), 143
AlternatingItem (ListItemType enumeration), 351
AlternatingItemStyle.Backcolor property, 496
AlternatingItemTemplate, 570
AlternatingItemTemplate property (Repeater control), 569
anonymous access, 809-811
file authorization and, 830
Any value (OutputCacheLocation enumeration), 759, 796
application assembly cache, 843, 894
Assembly directive and, 848
Application dictionary objects, 217, 219
concurrency and, 221
scalability and, 222
Application directive, 237, 845, 846
assigning names to compiled classes, 859
global.asax file and, 216
application directories, 841
application domains, 842
global.asax file and, 844
application events, 24, 849
C# code example, 856
firing under certain conditions, 851
firing with every page request, 849
VB.NET code example, 856
application identity, 835
application locking, use with caution, 222
Application property (HTTPApplicationState class), 215
application state, 214-222
C# code example, 218
concurrency and application locking, 221
memory and, 222
persistence and survivability, 222
scalability and, 222
VB.NET code example, 218
web farms/gardens and, 222
web service access to, via HttpContext object, 680-682
Application_AcquireRequestState event, 850
Application_AuthenticateRequest event, 850
Application_AuthorizeRequest event, 850
Application_BeginRequest event, 849
Application_Disposed event, 851
Application_End event, 24, 851
application state and, 215-218
in global.asax file, 848
using WriteFile( ) instead of Response.Write( ), 857
Application_EndRequest event, 850
Application_Error event, 851, 857
application-level classes (FCL), 3
application-level tracing, 275-276
Application_OnEnd event (ASP), 21
Application_OnStart event (ASP), 21
Application_PostRequestHandlerExecute event, 850
Application_PreRequestHandlerExecute event, 850
Application_PreSendRequestContent event, 850
Application_PreSendRequestHeaders event, 850
Application_ReleaseRequestState event, 850
Application_ResolveRequestCache event, 850
applications, 838-843
configuring, 864-893
controlling, 843-864
deploying, 893-898
assemblies and, 893
globally, 895-898
XCOPY deployment, 894
Application_Start event, 24, 851
application state and, 215-217
in global.asax file, 848
using WriteFile( ) instead of Response.Write( ), 857
Application_UpdateRequestCache event, 850
application-wide error pages, 292-296
appRequestQueueLimit attribute of <httpRuntime> section, 876
<appSettings> configuration section, 871-873
AppSettings property (ConfigurationSettings class), 873
appSettings values
C# code example, 873
VB.NET code example, 872
ArrayList objects
binding to controls, 331-334, 340-348
created by BindGrid( ), 355-361
creating in Page_Load( ), 332
implementing IComparer objects, 420
using as parameters/return values for web services, 693-695
setting private variables, 392
sorting, 418
arrays
accessing variables in classes, 737
adding items to CheckBoxList controls
from data sources, 91-94
programmatically, 84-91
adding rows to tables using, 473
binding to controls, 92, 331
using as parameters/return values for web services, 693
ascending sort order, 417, 421
.ascx files (user controls), 610
Assembly directive and, 237
Control directive and, 238
event handling and, 626
Implements directive and, 239
Import directive and, 239
.asmx files (web services), 669, 675
Class attribute and, 679
code-behind vs. inline code, 709
generating WSDL files, 718
deploying web services, 720
ASP
converting to ASP.NET, 9-10
creating "Hello World" example, 8
populating tables using, 26-28
vs. ASP.NET
events, 21, 26-35
key differences, 4
ASP controls, 36, 48-56, 57-198
advantages of, 56
browsers and, 51
C# code example, 49
commenting code, 120
hierarchy of, 53
properties inherited by, 55
state management, 208-233
VB.NET code example, 50
vs. HTML server controls, 51
ASPCheckBoxList.aspx file, 83
ASP.NET
ADO.NET and, 425-494
applications (see applications)
browsers, uplevel/downlevel, 51
code-behind files, 199-208
commenting code, 120, 868
creating "Hello World" example, 9-10
debugging tools, 265-296
performance enhancements, 797-800
populating tables using, 28-31
security, 806-836
selecting items from lists, 79-111
state management capabilities, 208-233
vs. ASP
events, 21, 26-35
key differences, 4
.aspx files, 199-208
C# code-behind Page directive, 202-204
controlling columns in DataGrid control, 362
converting from in-line code to code-behind, 200
creating a DataGrid within a form, 355
directives and, 237-241
event handling and, 626
sorting and paging in DataGrid control, 393-395
VB.NET code-behind Page directive, 204
assemblies
\bin directory and, 843
deploying applications, 893
globally, 895-898
<assemblies> section of <compilation> section, 875
assembly cache, 843, 894
assembly code, displaying programs as, 289
Assembly directive, 237, 848
AssemblyCompanyAttribute, 897
AssemblyConfigurationAttribute, 897
AssemblyCopyrightAttribute, 897
AssemblyCultureAttribute, 897
AssemblyDefaultAliasAttribute, 897
AssemblyDelaySignAttribute, 897
AssemblyDescriptionAttribute, 897
AssemblyFileVersionAttribute, 897
AssemblyFlagsAttribute, 897
AssemblyInfo.cs file, 896
AssemblyInformationalVersionAttribute, 897
AssemblyInfo.vb file, 714, 896
AssemblyKeyFileAttribute, 897
AssemblyKeyNameAttribute, 897
AssemblyProductAttribute, 897
AssemblyTitleAttribute, 897
AssemblyTrademarkAttribute, 897
AssemblyVersionAttribute, 897
Assigned value (Status field), 905
AsyncCallback delegates, declaring, 750
asynchronous event handling for web service consumers, 746-749
asynchronous method calls
adding proxy DLLs to consuming applications via, 742-751
vs. synchronous method calls, 729, 742
at sign (@), creating verbatim strings, 503
atomic transactions, 505
attribute/value pairs
directives and, 237, 846
state bag and, 211
WebService directive and, 679
Authenticate( ), 824
authenticated identities, 808
authentication, 807-829
anonymous access, 809-811
Basic, 813
certifcate, 829
Digest, 814
Forms, 817-828
Integrated Windows, 815
Passport, 816
Windows, 811-816
<authentication> configuration section, 822, 881
authentication cookies, 817
forcing to expire, 828
<forms> tag in <authentication> section, 822
GetAuthCookie( ) and, 826-828
GetRedirectUrl( ) and, 826
RedirectFromLoginPage( ), 820
SetAuthCookie( ) and, 825
authentication providers, enabled using configuration files, 808
<authenticationModules> section of <system.net>, 873
authorization, 830-834
file, 830
URL, 831-834
<authorization> configuration section, 832, 882
user access to applications, granting, 833
AutoEventWireup attribute
Control directive, 238, 618
Page directive, 240
autoEventWireup attribute of <pages> section, 875
AutoGenerate value of password attribute, 836
AutoGenerateColumns attribute (DataGrid control), 370, 444, 590
AutoIncrement property (DataColumn class), 470
AutoIncrementSeed property (DataColumn class), 470
AutoIncrementStep property (DataColumn class), 470
AutoPostBack property
CheckBox control, 76
CheckBoxList control, 84
DropDownList control, 334
TextBox control, 64, 736, 739, 744
Autos window, 286
B[ Top ]
BackColor property, 55, 187
BackImageUrl property
Panel control, 130
Table control, 122
base classes (FCL), 2
BaseDataList class, 349
Baseline value (ImageAlign property), 137
Basic authentication, 813
batch files, creating proxy DLLs using, 730
BeginGetHistory( ), 729, 746
BeginTransaction( ), 512, 536
BelowNormal value (CacheItemPriority enumeration), 787
benchmarking programs, 804
\bin directory and assemblies, 894, 238, 843
Bindable attribute (custom controls), 636
BindData( ), 504
BindGrid( )
creating ArrayList object, 355-361
populating data grid, 593
sorting ArrayList object, 418
binding, data (see data binding)
binding, early vs. late, 803
_blank value
Target property (AdRotator control), 142
Target property (HyperLink control), 69
Bold subproperty (Font class), 60
BookCounter composite control, 654-657
C# source code, 654
implementing INamingContainer interface, 656
VB.NET source code, 655
BookCounterBuilder class, 660
BookInquiryList composite control, 657-664
C# source code, 658
VB.NET source code, 658-660
BookList user control
code-behind file (VB.NET), 628
source code for, 614
BookList.ascx.cs file, 623, 623-625
BookName attribute (BookCounter control), 649, 656
Boolean properties for changing Calendar control, 152
BorderColor property, 55, 496
BorderStyle property, 55, 496
BorderWidth property, 55, 497
Bottom value (ImageAlign property), 137
BoundColumn element, 371, 416, 444, 590
Breakpoint windows, 280
breakpoints, 278-290
properties of, 281
setting, 279
stepping through code and, 283
Browsable attribute (custom controls), 636
<browserCaps> section of <system.web>, 874
browsers
aliases provided for, 874
calendars rendered as HTML tables, 187
uplevel/downlevel, 36, 51, 55, 298
btnBookName_Click( ), 40, 51
btn_Click event handler method, 228
btnLink_Click( ), 67
btnRange_Click event handler method, 259
btnTGIF_Click event handler method, 259-262
BubbleEvent event, 21
Buffer attribute (Page directive), 240
BufferResponse property (WebMethod attribute), 683
bug database
architecture of, 904
design of, 425-429
using Access with, instead of SQL Server, 438-441
bug report, excerpt from, 426
bug reporting form, creating, 299-309
BugHistory table, 427
creating data relationships with Bugs table and lkSeverity table, 458-468
DataView objects and, 457
displaying parent/child relationships, 444-454
foreign key for, 445
Panel control and, 446
structure of, 904
Bugs table, 427
constraints in, 471
data relations, creating, 476
with BugHistory table, 458-468
foreign keys, creating, 475
populating by hand, 469-484
primary key, creating, 474
structure of, 904
Button control, 64, 67
C# code example, 61, 65
forcing selection of range of dates, 169-176
implementing database transactions, 510
postback event, 25
updating databases with SQL, 496
VB.NET code example, 61, 66
<button> tag, 46
ButtonColumn element, adding to data grid, 445
C[ Top ]
C#
commenting code, 120
creating "Hello World" example, 10
internal access modifier, 201
protected internal access modifier, 201
variable names, differences with VB.NET, 168
vs. VB.NET
coding differences, 18
command-line compiler differences, 730
populating tables in ASP.NET, 29
Cache class, 768
dependencies, exposed by, 775-786
exposing additional functionality, 774
cached item dependencies, 779-784
CacheDependency class, 778-784
CacheDuration property (WebMethod attribute), 684
CacheItemPriority enumeration, 787
CacheItemRemovedCallback parameter (Add/Insert methods), 787-792
CacheItemRemovedReason parameter (RemovedCallback method), 793
CacheNoSlidingExpiration value, 786
caching
fragment caching, 760-767
HttpCachePolicy class, 794-796
OutputCache directive and, 240
performance and, 752-805
types of, 753
user controls, 760-767
cal_DayRender event handler method, 258, 260
Calendar control, 147-198
Boolean properties for controlling appearance of, 152
C# code example
date range selection, 170-174
DayRender event and, 179-184, 258
expanded selection functionality, 161-165
SelectionChanged event and, 156-157
VisibleMonthChanged event and, 189-194, 258
DropDownList control and, 160, 166, 254
postback event, 25
programming, 154-198
properties of, 149, 247
changing, 246
SelectedDate property used with, 161
style properties of, 152-155
VB.NET code example
date range selection, 174-176
DayRender event and, 184-186
expanded selection functionality, 165-166
SelectionChanged event and, 158
VisibleMonthChanged event and, 194-196
Calendar tool (Visual Studio .NET), 246
CalendarDay class
DayRender event and, 179
properties of, 187
CalendarSelectionMode enumeration, members of, 150
Calendar-Simple2.aspx file, 150
Calendar-Simple3.aspx file, 153
Calendar-Simple.aspx file, 147
Call Stack window, 288
callback methods, 743
BeginGetHistory( ) and, 746
creating in clients, 750
implementing, 751
support for, 787-794
cal_SelectionChanged( ), C# and VB.NET code examples for, 257
cal_VisibleMonthChanged event handler method, 258-262
camel-casing
attribute/tag names, 867
variable names, 393
Cancel event, event handler for, 590, 594, 599
CancelText attribute of EditCommandColumn element, 590
Cascade value (Rule enumeration), 476
Category attribute (custom controls), 636
CausesValidation property, 55
cblFontStyle_Init( ), 120
cblGenre_Init( ), 87, 90, 92
cblGenre_SelectedIndexChanged( ) and StringBuilder class, 97
CE (Common Era), 159
Cell property (DayRenderEventArgs class), 179
CellPadding property
Calendar control, 149, 247
CheckBoxList control, 84
Table control, 122
Cells collection, 385, 594
cells, controlling width of, 128
Cells property (TableRow control), 113
CellSpacing property
Calendar control, 149, 247
CheckBoxList control, 84
Table control, 122
certificate authentication, 829
character encoding parameters (UTF-8/UTF-32), 867
CheckBox control, 71-76
C# code example, 72-74
non-postback event, 25
properties not inherited from WebControl class, 76
VB.NET code example, 74
CheckBoxList control, 71, 80, 82-98
binding ArrayLists to, 339-348
C# code example, 343
adding items from arrays, 85
adding items from data sources, 92
adding items with values from arrays, 88
responding to user action, 95
code-behind source file (C#), 344-348
font samples, setting attributes of, 113
font styles, setting, 125-128
non-postback event, 25
properties of, 84
responding to user selections, 94-98
Table control and, 120
VB.NET code example
adding items from arrays, 86
adding items from data sources, 93
adding items with values from arrays, 89
responding to user action, 96
Checked property (CheckBox control), 76
CheckedChanged event, 21, 76, 79
child controls
INamingContainer interface and, 656
ParseChildren attribute and, 661
rendering, 661
ChildRelations property (DataTable class), 432
class attribute, specifying object types, 864
Class attribute (WebService directive), 679, 709
class caching, 753
class definitions for Stock Ticker example, 696
class libraries, 2
classes
binding to controls, 336-338
as configuration section handlers, 891
instantiating before using, 699, 737
prepending namespaces to, 680
using with web services, 695-699
vs. tables, 900
ClassName attribute
Application directive, 847, 859
Control directive, 238, 618
Page directive, 240
<clear> section of <httpHandlers> section, 877
Clear value of passwordFormat attribute, 823, 882
Clear( )
DataSet class, 431
DataTable class, 432
ClearError( ), 858
Click event, 21
button controls and, 65
overriding behavior of, 646
writing event handlers for buttons, 497, 503, 510
client certificates, 829
Client Errors status codes, 271
Client value (OutputCacheLocation enumeration), 759, 795
clientScriptsLocation attribute of <webControls> section, 879
client-side event handlers, 22
client-side scripting and LinkButton controls, 68
client-side validation, 298, 308
ClientValidationFunction attribute, 327
CustomValidator control, 326
regular expressions matched using JScript, 326
ClientTarget attribute (Page directive), 240
forcing server-side validation, 298
<clientTarget> section of <system.web>, 874
ClientValidationFunction attribute (CustomValidator control), 327
ClientValidator( ), 327
Close( ) (DataReader class), 434
Closed value (Status field), 905
CLR (Common Language Runtime), 1
assembly cache, monitoring, 894
global.asax file, monitoring for changes, 844
include files, monitoring for changes, 863
CLR-supported primitive data types for web services, 693-695
CLS (Common Language Specification), 2
code
commenting, 120, 868
disabling reformatting option in Visual Studio .NET, 247
separating executable from presentation, 199-208
stepping through, 283
CodeBehind attribute
Application directive, 237, 847
Control directive, 616
Page directive, 200, 240, 251
code-behind files, 199-208
adding properties to Calendar control, 246
ADO.NET example, 435
C# code example, 205, 251, 262
converting .aspx files from inline code to, 200
converting web services from inline code to, 709-717
copying
contents of Page_Load( ) to, 256
private helper methods to, 255
file extensions for, 201
global.asax file and, 845
handling a button, 308
opening in Visual Studio .NET, 251
rationale for using, 676
VB.NET code example, 207, 253, 263
Visual Studio .NET vs. text editors, 200
vs. inline code, 709
web services and, 668, 708-717
using text editors, 709-712
using Visual Studio .NET, 712-717
CodeBehind.cs file, 205
CodeBehind.vb file, 207
Color.FromName( ), 374
colors
choosing in Visual Studio .NET, 248
conditionally setting bug severity colors, 373
setting for data display, 31-35
columnar vs. flow layout (HTML), 349
columns
cell width and, 128
controlling, in DataGrid control, 361-375
data-bound, 370
Edit columns, creating, 590-593
row organization and, 899
setting properties for, 470
sorting in DataGrid control, 393-395, 415-419
Columns attribute
DataGrid control, 444
TextBox control, 64
Columns property (DataTable class), 432
<Columns tag>, 371
ColumnsCollection class, 431
ColumnSpan property (TableCell control), 124, 386
COM+ interface, specified by Implements directive, 239
Command Builder, 564-567
Command event and button controls, 65
CommandEventArgs class, 65
command-line compilers
parameters for DLLs, 711
proxy classes, 730
CommandText property
connection transactions, implementing, 513
updating data with SQL, 503
CommandType property, 488
connection transactions, implementing, 513
database transactions, implementing, 511
setting to CommandText property, 490
commenting code, 120, 868
Common Era (CE), 159
Common Language Runtime (see CLR)
Common Language Specification (CLS), 2
Compare( ), 421
CompareTo( ), 420
CompareValidator control, 299, 313-322
checking input type, 314
code example, 317-322
comparing values in different controls, 314-322
<compilation> section of <system.web>, 290, 874
compiler errors, 291
CompilerOptions attribute (Control directive), 618
compilers, command-line, 711, 730
<compilers> section of <compilation> section, 875
composite custom controls, 609, 631
.aspx file for, 648
assignment of responsibilities among, 664
creating, 647-664
compound keys, 474
Computer Management
creating virtual directories with, 839-841
disallowing anonymous access, 809
concurrency issues, 550-564
application locking and, 221
C# code example, 554-559
testing update operations, 553
VB.NET code example, 560-564
Condition property (breakpoints), 281
<configSections> tag, 868
adding custom configuration sections, 886, 889
configuration caching, 753
configuration files (see machine.config file; web.config file)
configuration scheme, features of, 864
configuration section handler declarations, 868-871
custom configuration sections
accessing name/value pairs, 886
returning objects, 889-891
<configuration> section in web.config file, 231, 867
ConfigurationSettings class, 873, 893
reading contents of custom configuration sections, 886
connection pooling, 425
connection strings, 436
invoking stored procedures with no parameters, 487
modifying, to use properties in code, 621
using DataReaders, 455
connection transactions, implementing transactions with, 512-522
<connectionManagement> section of <system.net>, 873
consistent state of databases, 505
Constraints collection, 471
constraints, named vs. unnamed, 471
Constraints property (DataTable class), 432
constructors in generated proxies, 729
consuming web services, 666, 722-751
creating
applications, 731-751
consumers, 670
proxies, 723-731
discovery process, 722
container controls, 41
C# code example, 41
VB.NET code example, 44
Contents collection (SessionState class), 223
Contents subproperty (Application object), 219
context-sensitive help (VS.NET), 11
Continue value (UpdateStatus enumeration), 553
Control attribute (Reference directive), 241
Control class
composite controls and, 650
events derived from, 24
Repeater control derived from, 349
Control directive, 238
properties of, 618
control trees, 234
ControlBuilderAttribute attribute, 660
ControlCollection class, 374
Control.EnableViewState property, 210
controls, 36-56
binding ArrayList objects to, 331-334, 340-348
binding data sources to, 24, 331-348
binding other controls to, 338
comparing values in different controls, 314-317
custom (see custom controls)
disabling view state for, 210
event arguments and, 23
events for, 24
events/event handlers for, 21
HTML (see HTML controls)
postback/non-postback events for, 25
types of, 36
user (see user controls)
Controls collection
adding labels to, 422
composite controls and, 650, 657
specifying cells, 374
Controls property (Repeater control), 569
ControlToCompare attribute (CompareValidator control), 316
ControlToValidate attribute
RegularExpressionValidator control, 325
RequiredFieldValidator control, 302
cookieless attribute of <sessionState> section, 232, 878
cookies
identifying sessions with, 223
<machineKey> configuration section, 883
persistent, 820
(see also authentication cookies)
copyright user control, source code for, 611-614
copyright.ascx file, 610
Count property
Cells collection, 385
composite custom controls and, 656, 661
derived custom controls and, 645-647
CountedButton control
C# implementation, 644
contained in BookCounter, 656
modifying, 650-652
VB.NET implementation, 645
counter, incrementing using StateBag class, 211-214
Create( ) (IConfigurationSectionHandler interface), 891
CreateChildControls( ), 656
CreateDataGrid( ), 771, 892
cached item dependencies, 784
file change dependencies and, 776-778
credentials
anonymous access and, 809-811
authenticating users, 808
Basic authentication, 813
certification authentication, 829
Digest authentication, 814
Forms authentication, 817
Integrated Windows authentication, 815
role-based security and, 812
<credentials> section of <forms> section, 823, 881
csApplicationState.aspx file, 218
csASButtons.aspx file, 65
csASPAdRotator.aspx file, 144
csASPButtons.aspx file, 68
csASPCalendarDayRender.aspx file, 179-184
csASPCalendarMoreSelections.aspx file, 161-165
csASPCalendarRangeSelection.aspx file, 170-174
csASPCalendarSelectionChanged.aspx file, 156-157
csASPCalendarVisibleMonth.aspx file, 189-194
csASPCheckboxes.aspx file, 72-74
csASPCheckBoxListArray.aspx file, 85
csASPCheckBoxListArrayValue.aspx file, 88
csASPCheckBoxListDataBind.aspx file, 92
csASPCheckBoxListEvents.aspx file, 95
csASPDropDownList.aspx file, 103
csASPHyperLink.aspx file, 70
csAspImageAlign.aspx file, 137-139
csASPListBox.aspx file, 107-109
csAspPanel.aspx file, 130-132
csASPRadioButtonList.aspx file, 99
csASPRadioButtons.aspx file, 77
csASPServerControlBasics2.aspx file, 61
csASPServerControlBasics.aspx file, 57
csASPServerControls1.aspx file, 49
csASPServerControls.aspx file, 53
csAspTable.aspx file, 114-117
csCodeBehind.aspx file, 202-204
csConfig-02.aspx file, 887
csGlobalEvents, 861
csGlobalEvents-01.aspx file, 856
csGlobalEvents-02.aspx file, 861
csHelloWorld1.aspx file, 10
csHTMLServerControls2.aspx file, 43
csHTMLServerControls.aspx file, 38
csObjCache-01.aspx file, 770
csObjCache-02.aspx file, 777
csObjCache-03.aspx file, 782
csObjCache-04.aspx file, 790-792
csOutputCache-01.aspx file, 755
csOutputCache-02.aspx file, 758
csOutputCache-03.aspx file, 795
csOutputCache-UserControl.aspx file, 762
CssClass property, 55
csSessionState.aspx file, 223-226
csStateBagDemo.aspx file, 211
csStockTicker.asmx file, 678, 704-708, 726
csStockTickerCodeBehind.asmx file, 709
csStockTickerConsumer.aspx file, 735
csStringConcat.aspx file, 800-802
csUserControl.ascx file, 760
CType( ), 219
extracting data from controls, 595
object caching DataSet objects, 771
session state and, 229
culture attribute of <globalization> section, 877
Current value (DataRowVersion enumeration), 533, 535, 552
currentMonth variable, 167, 177
CurrentPageIndex property (DataGrid control), 423
currentYear variable, 167, 177
Custom colors, 248
custom configuration sections
providing access to name/value pairs, 885-888
reading values in C#, 887
reading values in VB.NET, 886
using early binding, 888
returning objects, 888-893
custom controls, 36, 609, 631-664
adding to web pages, 633
C#
code example, provided by VS.NET, 634
code-behind page, 640
source code for, 641
common attributes for, 636
composite, 609, 631
.aspx file for, 648
assignment of responsibilities among, 664
creating, 647-664
derived, 609, 631
creating, 644-647
maintaining state, 637-639
properties
accessing, 636
providing underlying values for, 636
registering with web pages, 633
Render( ), 636-638
tag prefixes and, 633
testing, using WebForm1.aspx file, 639
VB.NET
code example, 635
code-behind page, 642
source code for, 642
<customErrors> section of <system.web>, 293-296, 875
CustomValidator control, 299, 326-330
code example, 328
VB.NET code-behind file, 329
D[ Top ]
data binding, 331-348
adding code to user controls, 615-618
BindGrid( ) and
C# code example, 355-358
VB.NET code example, 358-361
postback and, 334-336, 578
requiring explicit control, 333
data breakpoint, 280
data classes (FCL), 2
data objects, creating by hand, 469-484
data sources, binding to controls, 24, 331-348
data types for web services, 693-695
data, updating (see updating data)
DataAdapter class, 433
DataSet class and, 523
extracting data from database, 437
updating databases, 532
database access, improving performance of, 804
database transactions, implementing transactions with, 507-511
DataBind( ), 333, 340
binding entire page, 339
list-bound controls and, 351, 414, 442, 456
DataBinder class, 388, 574
DataBinding event, 21, 24
data-bound columns in DataGrid control, 370
DataColumn class, 431
adding columns to DataTable objects, 469
creating data relations, 458
setting column properties, 470
setting constraints, 470-472
DataField attribute of BoundColumn element, 371, 590
DataGrid control, 349-424
ADO.NET and, 441-468
AutoGenerateColumns attribute, adding to, 370, 444, 590
C# code example
Bug class, 352
code-behind file for paging/sorting, 396-405
displaying parent/child relationships, 446-450
handling footer and details page, 375-379
implementing events, 363-366
changing appearance of data, 32-34
DataReader objects, using instead of DataSets, 454-456
details page, 387-393
creating link to, 375-393
details.aspx file, 388
C# code-behind file for, 389
VB.NET code-behind file for, 390
displaying data, 352-361
Edit column, creating, 590-593
events for page navigation, handling, 423
footer, adding to, 375-393
hyperlinks, adding to, 374
IComparer object, implementing, 420
ItemDataBound event, handling, 372
object caching and, 772
OnItemDataBound attribute, adding, 370
OnSortCommand event handler, implementing, 416-419
paging, implementing, 422
parent/child relationships, displaying, 444-454
populating table
with events, 32-35
without events, 28-31
postback event, 26
putting results on one page, 393-416
relational data, displaying, 442-444
summary footer, adding to, 384-387
updating databases with SQL, 496
VB.NET code example
Bug class, 353
code-behind file for paging/sorting, 405-413
displaying parent/child relationships, 451-453
footer and details page, 379-384
implementing events, 366-370
vs. Table control, 113
DataGridCommandEventArgs class, 594
DataGridItem objects, 351, 372
Controls collection and, 374, 594
DataGridItemEventArgs class
handling ItemCreated event, 385
handling ItemDataBound event, 372
setting colors to cells, 32-34
DataGridPageChangedEventArgs class, 423
DataGridSortCommandEventArgs class, 418
DataItem property (DataGridItem object), 373
DataKeyField attribute
DataGrid control, 414
creating edit columns, 590
displaying parent/child relationships, 445
updating databases, 596
DataList control, 601
DataKeys collection
creating, 414
retrieving data with DataList control, 601
SelectedIndex property and, 454
updating databases, 596
DataList control, 349-351, 576-580
binding data to, 568, 578-580
in-place editing, 596-608
C# code example, 602-606
VB.NET code example, 606-608
postback event, 26
templates, 577
vs. Table controls, 113
DataListCommandEventArgs class, 600
DataListItem objects, 351
DataMember property (Repeater control), 569
DataNavigateUrlField attribute, 371
DataNavigateUrlFormatString attribute, 371
DataReader class, 434, 454-456
enhancing performance with, 804
DataRelation objects, 431, 458-468
code-behind page, source code for, 462-468
declaring/initializing, 459
DataRelationCollection class, 431, 458
DataRow class, 432
creating objects, using NewRow( ), 472
overloaded version of Add( ) and, 473
properties and methods, 433
updating datasets, 529
DataRowVersion enumeration, 533-535, 552
DataSet class, 430-433
adding tables to, 473
CreateDataGrid( ) and, 771, 778
creating new objects, 437, 469
by hand, 476-484
DataAdapter class and, 523
properties and methods, 431
stored procedures for managing
delete command, 532-534
insert command, 535
update command, 534
updating databases, 522-548
adding transaction support, 536
C# code example, 538-543
creating/displaying datasets, 524-527
persisting datasets, 528
updating datasets, 529-531
updating records in datasets, 528
VB.NET code example, 543-548
vs. DataReader class, 434, 454-456
web services and, 699
DataSet property (DataTable class), 432
DataSetSectionHandler.vb file, 890
DataSource property
CheckBoxList control, 84, 341
DropDownList control, 333
list-bound controls, 351
BindGrid( ) and, 355, 361
DataGrid control, 419, 442, 460, 772
RadioButtonList control, 340
Repeater control, 569
DataTable class, 431
creating data relations, 458
by hand, 476-484
instantiating new objects, 469
properties and methods, 432
DataTableCollection class, 431
DataTextField attribute
DataGrid control, 371
DropDownList control, 338, 592, 595
DataValueField attribute (DropDownList control), 338, 592, 595
DataView class, 456-458
Date property
CalendarDay class, 187
DateTime class, 159
DateTime class
overloaded constructors used by, 167
read-only properties, 159
setting start/end dates, 177
Day property
DateTime class, 159
DayRenderEventArgs class, 179
Day value (CalendarSelectionMode enumeration), 150
DayHeaderStyle property (Calendar control), 152, 154, 247
DayNameFormat property (Calendar control), 149, 247
DayNumberText property (CalendarDay class), 187
DayOfWeek property (DateTime class), 159
DayOfYear property (DateTime class), 159
DayRender event, 179-188
C# code example, 179-184, 258
hooking up to Calendar control, 258
VB.NET code example, 184-186
DayRenderEventArgs class, 179, 187
DaysInMonth property (DateTime class), 167
DayStyle property (Calendar control), 152, 247
DayWeek value (CalendarSelectionMode enumeration), 150
DayWeekMonth value (CalendarSelectionMode enumeration), 150
DBCommand class, 433
DBConnection class, 433
ddl_SelectedIndexChanged event handler method, 259-262
deadlocks and application state, 221
Debug attribute
Control directive, 238, 618
Page directive, 240
debug mode, disabling to enhance performance, 804
Debug toolbar (VS.NET IDE), icons on, 278
debugger (VS.NET IDE), 12, 277-291
declarative object tags in global.asax file, 863
Declarative Referential Integrity (DRI), 901
decryptionKey attribute of <machineKey> section, 883
Default value
CacheItemPriority enumeration, 787
DataRowVersion enumeration, 533
default web sites, 839-842
<defaultProxy> section of <system.net>, 873
defaultRedirect attribute of <customErrors> section, 293, 875
DefaultValue attribute (custom controls), 636
DefaultValue property (DataColumn class), 471
DefaultView property (DataTable class), 432
DefaultViewManager property (DataSet class), 431
Defer value (Status field), 905
delegates
asynchronous proxy calls and, 744
callback methods and, 792
declaring as private members of class, 749
events and, 23, 625, 629
delegation, 807
cannot use with Passport authentication, 816
Integrated Windows authentication and, 815
not supported by Digest authentication, 814
Delete event, event handler for, 602
DeleteCommand property (SqlDataAdapter class), 523
building with Command Builder, 566
providing command objects to, 532-534
setting, 524
DeleteRule property (ForeignKeyConstraint class), 475
<deny> section of <authorization> section, 832, 882
dependencies, exposed by Cache class, 775-786
Dependencies parameter (Insert method), 784-786
DependencyChanged (CacheItemRemovedReason enumeration), 793
deploying applications, 893-898
assemblies and, 893
globally, 895-898
XCOPY deployment, 894
derived custom controls, 609, 631
creating, 644-647
descending sort order, 417, 421
Description attribute
Application directive, 237, 847
Control directive, 238, 618
custom controls, 636
Page directive, 240
Description property
WebMethod attribute, 684
WebService attribute, 692, 716
design surface, modifying in Visual Studio .NET, 13-17
Design view, 11, 14
editing code-behind files, 251
hooking up event handlers, 257
details.aspx file, 388
C# code-behind file for, 389
VB.NET code-behind file for, 390
dictionary objects
AdProperties property and, 147
Application, 217, 219
concurrency and, 221
scalability and, 222
session state, 223
assigning string arrays, 228
assigning Text/Value properties, 227
populating, 227
retrieving string arrays from, 229
StateBag class, 211-214
Digest authentication, 814
directives, 237-241
Application, 237
Assembly, 237
Control, 238, 618
in global.asax file, 846-848
Implements, 239
Import, 119, 239
OutputCache, 240
Page (see Page directive)
Reference, 241
Register (see Register directive)
WebService, 679
directories
configuration hierarchy, 865
physical vs. virtual, 839-842, 866
virtual, 7, 838-842
virtual root, 244, 713
Directory Browsing, enabling, 840
Directory Security tab, disallowing anonymous access using, 809
Disabled type (breakpoints), 283
Disabled value (TransactionOption enumeration), 690
Disassembly window, 289
.disco (discovery) files, 719, 722
creating, 717-720
disco.exe (discovery) utility, 719, 722
generating WSDL files, 723
.discomap files, 723
creating proxies with wsdl.exe utility, 724
disconnected vs. connected data sources, 425, 454-456
discovery documents provided by web services, 667
Display attribute (RequiredFieldValidator control), 302
DisplayMode attribute (ValidationSummary control), 309
displayString member variable, 653
Dispose( ), 236
Disposed event, 24
distributed computing via web services, 665-674
<div> tag
HeaderTemplate, 573
ItemTemplate, 574
DLL (dynamic link library) files
code-behind files and, 200
compiling via command line, 711
creating shadow copies of, 894
web services, 669
proxy DLLs, 670
XCOPY deployment and, 895
/domain:<domain> parameter (WSDL utility), 725
downlevel browser alias, 874
downlevel browsers, 36, 51, 55, 298
Downstream value (OutputCacheLocation enumeration), 759, 795
DRI (Declarative Referential Integrity), 901
DropDownList control, 71, 80, 103-106
adding items dynamically, 615-618
adding items to, from ArrayLists, 332
in bug reporting form, 301, 309
C# code example, 103
Calendar control and, 160, 166, 254
DataList control in-place editing and, 599
extracting data from, 595
non-postback event, 26
Panel control and, 133
RequiredFieldValidator control and, 302
VB.NET code example, 104-105
durable transactions, 505
Duration parameter (OutputCache directive), 755
dynamic content, adding to web pages, 8
dynamic link library files (see DLL files)
E[ Top ]
early binding, enhancing performance with, 803
Edit column, creating in DataGrid control, 590-593
Edit event, event handler for, 590, 593, 599
EditCommandColumn element, 590
editing, in-place (see in-place editing)
EditItem (ListItemType enumeration), 351
EditItemIndex property (DataGrid control)
OnCancelCommand event handler, implementing, 594
OnEditCommand event handler, implementing, 593
EditItemTemplate
controlling display in edit mode, 591, 598
DataList control in-place editing, 596
EditText attribute of EditCommandColumn element, 590
embedded scripts, adding to web pages, 8
Enabled property, 55
enabled property of <trace> section, 276, 879
Enabled type (breakpoints), 283
EnableSession property (WebMethod attribute), 685, 797
EnableSessionState attribute (Page directive), 230, 240
disabling session state for entire application, 797
EnableViewState attribute
Control directive, 238, 618
Page directive, 210, 240
disabling view state for server controls, 798
encrypted passwords and configuration files, 823, 882
encrypting credentials
certificate authentication and, 829
Digest authentication and, 814
Encryption value for <forms> tag, 822
not sent over network by Integrated Windows authentication, 815
using SSL with Basic authentication, 813
Triple-DES used by Passport authentication, 816
EndGetHistory( ), 729, 746
equal sign (=) and attribute/value pairs, 237
Error event, 24
error handling, 291-296
Application_Error event, 851, 857
application-wide error pages, 292-296
concurrency issues in databases, 550-564
controlling display of validation errors, 309-312
displaying custom error handling pages, 857
inserting exceptions into error logs, 274
logic errors, 291
page-specific error pages, 296
rolling back transactions, 508
syntax errors, 291
unhandled errors, 292
<error> section in <customErrors> section, 295, 876
Error type (breakpoints), 283
@@error value, checking, 508
ErrorMessage attribute (ValidationSummary control), 309
ErrorPage attribute (Page directive), 241
ErrorsOccurred value (UpdateStatus enumeration), 553
Eval( ) (DataBinder class), 388, 574
event arguments, 23, 625
providing custom, 629
event handlers, 21, 625
asynchronous event handling for web service consumers, 746-749
for custom controls, 639
event arguments and, 23
in global.asax file, 848-858
hooking up to controls in Visual Studio .NET, 257, 262
processing list box selections, 111
registering, 626
synchronous event handler code example, 745
for user changing current selection, 310
user controls, 622-630
C# code example, 622-626
custom event arguments, 629
VB.NET code example, 626-629
EventArgs class, 23
declaring event handlers, 32
event-driven programming, 20
events, 20-35
comparing ASP.NET to ASP, 21, 26-35
delegates and, 23, 625, 629
event handlers, client-side vs. server-side, 22
firing under certain conditions, 851
firing with every page request, 849
hooking up to controls
in C#, 258
in VB.NET, 260
postback vs. non-postback, 25
program execution models, 20
in script blocks, 848-858
exception handling and tracing, 274
EXE (executable) files, 843
executable code, separating from presentation code, 199-208
ExecuteNonQuery( ), 493
updating database transactions, 511
updating databases with SQL, 495, 503, 596
ExecuteQuery( ), 600
ExecuteReader( ), 455
executionTimeout attribute of <httpRuntime> section, 876
Expired (CacheItemRemovedReason enumeration), 793
Explicit attribute
Control directive, 239, 618
Page directive, 241, 803
explicit binding
list-bound controls and, 351
requiring, 333
explicit parameters, invoking stored procedures with, 490-492
F[ Top ]
FCL (Framework Class Library), 2
file authorization, 830
file breakpoint, 280
file change dependencies, 776-779
file extensions for code-behind files, 201
FileAuthorization module in <httpModules> section, 878
fileEncoding attribute of <globalization> section, 877
Fill( ) (DataAdapter class), 433, 523
FillSchema( ) (DataAdapter class), 434
FindControl( ), 595
firewalls and web services, 668
FirstDayOfWeek property (Calendar control), 149, 247
Fixed value (Status field), 905
flags variable, incremented by callback methods, 751
flow vs. columnar layout (HTML), 349
FlowLayout mode (pageLayout property), 13, 263, 738
Font class, subproperties of, 60
font names, assigning, 127
Font property, 55
font sizes and RadioButtonList control, 121, 125-128
font styles and CheckBoxList control, 121, 125-128
FontFamily objects, 126
FontUnit type, VB.NET requires explicit instantiation, 60, 102
Footer (ListItemType enumeration), 351
footers
adding to DataGrid control, 375-393
testing if items are, 32
FooterTemplate, 570, 573
FooterTemplate property (Repeater control), 569
for loops, 342
ForeColor property, 55
foreign keys
for BugHistory table, 445, 458
for Bugs table, 475, 901
relationships among Bugs, BugHistory, and People tables, 906
ForeignKeyConstraint class, 475
<form> tag, 46
Formatting menu in Visual Studio .NET, 14
Forms authentication, 808, 817-828, 881
ASP.NET, configuring, 821-823
creating login forms, 817-821
getting authentication cookies, 826-828
implementing, using IIS, 821
logging out, 828
redirect to specified pages, authenticating with, 825
web.config file, authenticating against, 823-825
<forms> section of <authentication> section, 822, 881
FormsAuthentication class, 820, 824, 828
FormsAuthentication module in <httpModules> section, 878
fragment caching, 760-767
framework base classes, 2
Framework Class Library (FCL), 2
Friedl, Jeffrey, 324
friend access modifier (VB.NET), 201
From First(s)/From Last(s) columns, 269
FromName( ) (Color class), 374
full custom controls (see custom controls)
function breakpoint, 280
function calls, stepping out of, 284
G[ Top ]
GAC (Global Assembly Cache), 843
deploying applications, 896-898
GacUtil.exe utility, 896-898
genres, creating string array of, 87
Get( ) (SortColumn property), 417
GetAuthCookie( ), 826
GetChanges( )
DataSet class, 431
DataTable class, 432
GetChildRows( ) (DataRow class), 433
GetConfig( ), 886-888, 893
GetDataSet( ), 699, 772, 776-778
GetHistory( )
proxy method, 729, 746
web method
C# code example, 698
VB.NET code example, 697
GetLastError( ), 858
GetList( ) (web method), 694
GetName( ), 552
web method, 676
GetParentRow( ) (DataRow class), 433
GetPrice( ) (web method), 676
GetRedirectUrl( ), 826
GetXML( ) (DataSet class), 431
GetXMLSchema( ) (DataSet class), 431
global application objects, 218
Global Assembly Cache (GAC), 843
deploying applications, 896-898
global deployment, 895-898
global.asa file (ASP), 844
global.asax file, 714, 837, 844-864
Application directive and, 237
application state and, 214-222
Assembly directive and, 237
using C#, 215
code-behind technique used with, 845
derived from HttpApplication class, 844
directives in, 846-848
event demonstration
C# code example, 853-855
VB.NET code example, 851-853
events in, 848-858
Import directive and, 239
include file
C# code example, 863
VB.NET code example, 862
object declarations in, 863
sample file
C# code example, 846
VB.NET code example, 845
script blocks in, 848-862
server-side includes in, 862
session-scoped application objects, 233
static variables/instance methods in, 859-862
C# code example, 861
VB.NET code example, 860
using VB.NET, 216
<globalization> section of <system.web>, 876
greater-than (>) default value for NextMonthText property, 248
greater-than-or-equal-to () navigation symbol, 148
greater-than-or-equal-to twice ( ) navigation symbol, 151
GridLayout mode (pageLayout property), 13, 263, 738
GridLines property (Table control), 122
GroupName property (RadioButton control), 76
groups and role-based security, 812
grpSize_CheckedChanged( ), 79
Grundgeiger, Dave, 9
H[ Top ]
handler declarations for configuration sections, 868-871
custom configuration sections
accessing name/value pairs, 886
returning objects, 889-891
HasErrors property (DataSet class), 431
HashPasswordForStoringInConfigFile( ), 823
Header (ListItemType enumeration), 351
headers, testing if items are, 32
HeaderStyle.BackColor property, 497
HeaderStyle.Font.Bold property, 497
HeaderTemplate, 570, 573
HeaderTemplate property (Repeater control), 569
HeaderText attribute
BoundColumn element, 371, 416
ValidatorSummary control, 309
heading cells in tables, 123-128
Height property, 55
Panel control, 133
help, context-sensitive, 11
hierarchy of configuration system, 865
High value (CacheItemPriority enumeration), 787
History table (see BugHistory table)
Hit Count property (breakpoints), 282
HorizontalAlign property
Panel control, 130, 133
Table control, 122
TableCell control, 124, 386
TableRow control, 123
Hour property (DateTime class), 159
HTML
columnar vs. flow layout, 349
commenting code, 120
converting into user controls, 614
creating "Hello World" example, 7
editing directly, using HTML tab, 14, 30, 32
HTML controls, 16, 36
converting to HTML server controls, 37
creating, 13
vs. Web Forms controls, 16
HTML editor (Visual Studio .NET), 11
HTML server controls, 22, 36-48
advantages of, 56
C# code example, 37
performance issues with, 798
state management, 208-233
VB.NET code example, 39
vs. ASP controls, 51
HTML tags
categories of, 46
vs. ASP controls, 112
HTML: The Definitive Guide, 7, 36
HTML view, 11, 14
editing code-behind files, 251
syntax problems with literal characters, 249
HtmlTextWriter class
composite controls, rendering output for, 663
custom controls, rendering output for, 636
HTTP (HyperText Transfer Protocol) protocol, 665, 672
HttpApplication object, controlling applications globally with, 843
HttpApplicationState class, 215
HttpContext object and, 682
Lock( ) and Unlock( ), 221
HttpBrowserCapabilities object, 51
HttpCacheability enumeration, 795
HttpCachePolicy class, 794-796
HttpContext object, 858
web service access to application state via, 680-682
HTTP-GET requests, 666, 672
HttpGetClientProtocol class, 672
<httpHandlers> section of <system.web>, 877
<httpModules> section of <system.web>, 877
HTTP-POST requests, 666, 672
HttpPostClientProtocol class, 673
HttpRequest.Browser property, 51
<httpRuntime> section of <system.web>, 876
HttpServerUtility object, 858
HttpWebClientProtocol class, 674
HyperLink control, 69-71
adding to DataGrid control, 374
C# code example, 70
VB.NET code example, 70
(see also LinkButton control)
HyperLinkColumn element, 371
creating hyperlinks, 374
I[ Top ]
/i command-line switch (GacUtil.exe), 898
IAsyncResult interface, 744, 750
IComparable interface, 420
IComparer class, 418
IConfigurationSectionHandler interface, 891
id attribute, 37
declaring objects in applications/sessions, 863
submit button and, 40
ID property, 55
identities, authenticated, 808
identity columns, 470
manually adding values for, 474
provided by database, 507
retrieving, using @@identity keyword, 508
setting constraints, 470-472
<identity> configuration section, 880
enabling impersonation, 834
@@identity keyword, 508
updating databases, 536
IDEs (integrated development environments), 6
programming web forms, 241-264
(see also Visual Studio .NET)
ie4 browser alias, 874
ie5 browser alias, 874
if statements, 343
IHttpHandler interface, 877
IHttpHandlerFactory interface, 877
IIS (Internet Information Server), 7
anonymous access, disallowing, 809
basic authentication, implementing, 813
impersonation and, 835
implementing Forms authentication, 821
<processModel> tag and, 878
virtual directories, 838-842
Windows authentication, configuring for, 811
working with ASP.NET to provide security, 807
Image control, 135-141
C# code example, 137-139
properties of, 136
VB.NET code example, 140
ImageAlign property (Image control), 136
ImageButton control, 64, 67
C# code example, 65
postback event, 26
VB.NET code example, 66
ImageClickEventArgs class, 67
images, controls for displaying, 135-147
ImageUrl property
AdCreateEventArgs class, 147
HyperLink control, 69
Image control, 136
<ImageUrl> tag (AdRotator control), 143
<img> tag, 46
Immediate window, 285
impersonate attribute of <identity> section, 880
impersonation, 834-836
Implements directive, 239
Import directive, 119, 239, 847
Imports statement (VB.NET), 23, 119, 200, 239, 891
<Impressions> tag (AdRotator control), 143
INamingContainer interface, 650
implemented by BookCounter class, 656
include files, 862
IndexOf( ) (String class), used by web method, 695
Informational status codes, 271
Inherits attribute
Application directive, 237, 847
Control directive, 239, 618
Page directive, 199, 241, 251
Init event, 21, 24, 59
initialization phase of page loading, 234
Init( ) and Count property, 653
initialization phase of web page lifecycle, 234
InitializeComponent( ), 262, 626
InitialValue attribute (RequiredFieldValidator control), 302
inline code
class caching and, 753
consuming web page
C# code example, 735
VB.NET code example, 732-735
converting web services to code-behind from, 709-717
vs. code-behind files, 709
inner HTML content, specifying Text property as, 81
inner joins, 903
InnerHtml property, 41, 47
InnerText property, 41, 47
in-place editing, 580-596
.aspx page for, 581-583
C# code-behind page for, 583-587
DataList control support for, 596-608
VB.NET code-behind page for, 587-589
input controls, 41
C# code example, 41
types of, 46
VB.NET code example, 44
input parameters, 533
<input> tag, 46
input type, checking with CompareValidator control, 314
Insert statement (SQL), 503
connection transactions, implementing, 512
database transactions, implementing, 508
Insert( ) (Cache class)
CacheItemRemovedCallback parameter, 787-792
file change dependencies, 778
scavenging via Priority parameter, 786
syntax for, 774
time dependencies, 784-786
InsertCommand property (SqlDataAdapter class), 523
building with Command Builder, 566
providing command objects to, 535
setting, 524
InstalledFontCollection objects, instantiating, 126
instance methods in script blocks, 859-862
Int32.Parse( ), 328
integrated development environments (see IDEs)
Integrated Windows authentication, 815
IntelliSense technology (VS.NET), 11, 17
interfaces (OOP concept), 891
internal access modifier (C#), 201
Internet Information Server (see IIS)
Internet Services Manager
defining virtual directories, 7, 839-841
disallowing anonymous access, 809
ISerializable class, 228
isolated transactions, 505
ways of violating, 506
IsOtherMonth property (CalendarDay class), 187
IsPostBack property
CheckBoxList control, 341
DataList control, 578
DropDownList control, 106, 334
minimizing round trips using, 800
Table control, 124
testing, in C#/VB.NET, 335
testing value of, 25
IsSelectable property (CalendarDay class), 187
IsSelected property (CalendarDay class), 187
IsToday property (CalendarDay class), 187
IsWeekend property (CalendarDay class), 187
Italic subproperty (Font class), 60
Item (ListItemType enumeration), 351
Item property
DataGridCommandEventArgs class, 594
DataRow class, 433, 529
ItemArray property (DataRow class), 433
ItemCommand event (Repeater control), 569
ItemCreated event, 21
populating summary footer, 384
Repeater control, 569
ItemDataBound event, 21, 32
handling, 372
populating summary footer, 384
Repeater control, 569
ItemIndex property (DataGrid control), 593
Items collection
CheckBoxList/RadioButtonList controls, 341
list-bound controls, 351, 386
Items property (Repeater control), 569
ItemTemplate, 570, 574
controlling display in normal mode, 591
DataList control in-place editing, 597
ItemType property of DataGridItem object, 351, 372
J[ Top ]
JavaScript
adding to web pages, 8
client-side validation for user input, 327
commenting code, 120
performing postback for calendars, 187
join statement, displaying relational data in data grid, 443
K[ Top ]
Kennedy, Bill, 7, 36
Kerberos (Integrated Windows authentication), 815
<Keyword> tag (AdRotator control), 143
KeywordFilter property (AdRotator control), 141
Kline, Kevin, 903
L[ Top ]
/l command-line switch (GacUtil.exe), 898
Label control, 63
C# code example, 57, 61
Calendar control and, 158, 167
data relationships and, 462
using CheckBox controls to change appearance of, 72-76
VB.NET code example, 58, 61
Label tool (Visual Studio .NET), 245
labels, adding to web forms, 13-17
Language attribute
Application directive, 237, 847
Control directive, 239, 618
Page directive, 241
removing from .aspx files, 204
WebService directive, 679, 709
/language parameter (WSDL utility), 725
late vs. early binding, 803
lblTime_Init( ), 59
Left value (ImageAlign property), 137
less-than (<) default value for PrevMonthText property, 248
less-than-or-equal-to (?) navigation symbol, 148
level attribute of <trust> section, 884
Liberty, Jesse, 9, 23, 60, 211, 275
lifecycle of web pages, 233-236
linear programming, 20
LinkButton control, 64, 68
C# code example, 65
postback event, 26
VB.NET code example, 66
(see also HyperLink control)
list-bound controls, 349-424, 568-608
differences among, 350, 568
shared properties and collections, 350-352
ListBox control, 71, 80, 106-112
ADO.NET and, 434-438
C# code example, 107-109
non-postback event, 26
VB.NET code example, 109-110
ListChanged event
used in C# code example, 625
used in VB.NET code example, 626
ListControl class
controls derived from, 80
differences among list controls, 81
selection properties inherited from, 98
ListItem objects, 81
adding items to CheckBoxList controls
from data sources, 91-94
programmatically, 84-91
statically, 82-84
ListItemType enumeration (ItemType property), 351, 372, 385
LiteralControl control, 127
Calendar control and, 187
control trees in web pages, 234
Panel control and, 135
literals in regular expressions, 324
lkProduct table, 429
adding new tables for, 473
lkRoles table, 429
lkSeverity table, 429
creating data relationship with BugHistory table, 458-468
lkStatus table, 429
structure of, 905
values for Status field, 905
Load event, 21, 24, 234
LoadPostData( ), 236
LoadViewState( ), 236
localhost
accessing virtual root of local copy of IIS, 7
creating new VS.NET projects, 244, 713
localOnly property of <trace> section, 276, 879
Locals window, 286
<location> configuration section, 884
applying access rules to subdirectories, 833
Location parameter (OutputCache directive), 759
Lock( ) (HttpApplicationState class), 221
locking
application state and, 221
records to prevent data corruption, 549
logic errors, 291
login forms
authenticating against web.config file, 824
creating, 817-821
GetAuthCookie( ) and, 826
loginUrl attribute for <forms> tag, 822
SetAuthCookie( ) and, 825
loginUrl attribute of <forms> section, 822, 881
Lomax, Paul, 211
look-up tables, 428
loosely vs. tightly coupled connections, 665
Low value (CacheItemPriority enumeration), 787
M[ Top ]
machine.config file, 864-886
authentication providers, enabling, 808
configuration hierarchy, 865
configuration sections, 871-885
handler declarations for, 868-871
custom configuration sections, adding to, 885
default version of, 869
disabling view state, 210
format of, 867
global assembly, adding to, 898
user access to applications, granting, 833
<machineKey> configuration section, 883
MakeCert.exe (certificate creation tool), 829
managed code, enhancing performance with, 803
managed providers for ADO.NET, 438-441
manifests in assembly files, 893
many-to-many relationships, 906
many-to-one relationships, 906
Mastering Regular Expressions, 324
MaximumValue attribute (RangeValidator control), 323
MaxLength property
DataColumn class, 471
TextBox control, 64
maxRequestLength attribute of <httpRuntime> section, 876
MD5 value of passwordFormat attribute, 823, 882
Me window (VB.NET), 287
member variables
assigning to local variables, 737
creating, 621
modifying derived custom controls, 653
retrieving from web service class, 737
using instead of session state, 685
memory and application state, 222
Memory windows, 289
Merge( ) (DataSet class), 431
MessageName property (WebMethod attribute), 686-689
metacharacters in regular expressions, 324
metadata in assemblies, 893
method calls, stepping out of, 284
methods, overloading, 90, 474
Cache class and, 774
MessageName property and, 686-689
Microsoft Intermediate Language (MSIL) code, 289
Microsoft Internet Information Server (see IIS)
Microsoft Knowledge Base Article Q187506, "List of NTFS Permissions Required for IIS Site to Work", 830
Microsoft Management Console (MMC)
creating virtual directories, 839
disallowing anonymous access, 809
Middle value (ImageAlign property), 137
Millisecond property (DateTime class), 159
minFreeThreads attribute of <httpRuntime> section, 876
MinimumValue attribute (RangeValidator control), 323
minLocalRequestFreeThreads attribute of <httpRuntime> section, 876
Minute property (DateTime class), 159
MMC (Microsoft Management Console)
creating virtual directories, 839
disallowing anonymous access, 809
mode attribute
<authentication> section, 808, 881
<customErrors> section, 293, 875
<sessionState> section, 231, 878
Modules window, 288
Month property (DateTime class), 159
MonthChangedEventArgs class, 197
months, changing with VisibleMonthChanged event, 189-198
MoveNext/MovePrevious commands, 432, 434
mscorlib handler declaration, 871
MSIL (Microsoft Intermediate Language) code, 289
multiple selection list boxes, 111
multiuser updates, 548-564
Musciano, Chuck, 7, 36
N[ Top ]
NAB (Not A Bug) value (Status field), 905
name attribute
<forms> section, 822, 881
<trustLevel> section, 883
<user> section, 882
Name attribute (Assembly directive), 238, 848
Name property (WebService attribute), 692
Name subproperty (Font class), 60
Names subproperty (Font class), 60
Namespace attribute (Import directive), 239, 847
/namespace:<namespace> parameter (WSDL utility), 725
Namespace property (WebService attribute), 692
namespaces, created in VS.NET, 252
name/value pairs
in configuration sections, 871
HTTP-GET/HTTP-POST requests, 672
returning, using custom configuration sections, 885-888
NameValueCollection
GetConfig( ) and, 888
returned by QueryString property, 392
type of AppSettings property, 873
NameValueSectionHandler class, 872, 886
NavigateUrl property
AdCreateEventArgs class, 147
HyperLink control, 69, 375
<NavigateUrl> tag (AdRotator control), 143
navigating pages and DataGrid control, 422
Nested property (DataRelation class), 461
.NET Framework, 2-3
_new value
Target property (AdRotator control), 142
Target property (HyperLink control), 69
NewPageIndex property (DataGrid control), 423
NewRow( ) (DataTable class), 432, 472
NextMonthText property (Calendar control), 149, 247
avoiding syntax problems using character entities, 248
NextPrev mode, 423
NextPrevFormat property (Calendar control), 149, 247
NextPrevStyle property (Calendar control), 152, 248
NextResult( ) (DataReader class), 434
NoCache value (HttpCacheability enumeration), 796
/nologo parameter (WSDL utility), 725
None value
authentication mode, 808, 881
CalendarSelectionMode enumeration, 150
OutputCacheLocation enumeration, 759, 796
Rule enumeration, 476
Normal value (CacheItemPriority enumeration), 787
normalization process for databases, 901
NotRemovable value (CacheItemPriority enumeration), 787
NotSet value (ImageAlign property), 137
NotSupported value (TransactionOption enumeration), 690
NPTF (No Plan To Fix) value (Status field), 905
NR (Not Reproducible) value (Status field), 905
NTFS file system, 806
file authorization and, 830
Windows authentication and, 811
NTLM (NT Lan Manager) challenge/response (Integrated Windows authentication), 815
NumericPages mode, 423
NYD (Not Yet Deployed) value (Status field), 905
O[ Top ]
object caching, 754, 767-794
Cache class functionality, 774
cached item dependencies, 779-784
callback methods, support for, 787-794
file change dependencies, 776-779
scavenging, 786
time dependencies, 784-786
object databases vs. relational databases, 900
object model, ADO.NET, 429-434
objects
binding to controls, 336-338
declaring in global.asax file, 863
examining value of, 285
overloading methods, 90
returning, using custom configuration sections, 888-893
vs. rows, 900
Off value (mode attribute of <sessionstate>), 231, 232
OLE DB managed providers, 438-441
OleDbCommand class, 433
invoking stored procedures with explicit parameters, 490
OleDbCommandBuilder, 564
OleDbConnection class, 433
OleDbDataAdapter class, 433, 439
OleDbDataReader class, 434, 454
enhancing performance with, 804
OnAdCreated attribute, 146
event handler for, 143
OnBubbleEvent attribute, 21
OnCancelCommand attribute (DataGrid control), 590
implementing event handler for, 594, 599
OnCheckedChanged attribute, 21, 76, 79
OnClick attribute, 21, 51
Button control and, 67
vs. OnServerClick attribute, 40
OnClick( ), 646
onCompletedGetHistory( ), 750
onCompletedGetName( ), 750
onCompletedGetPrice( ), 750
OnDataBinding attribute, 21
OnDeleteCommand attribute (DataGrid control), 602
OnEditCommand attribute (DataGrid control), 590
implementing event handler for, 593, 599
one-to-many relationships, 906
OnInit attribute, 21
in basic web page, 59
cblFontStyle_Init( ) and, 120
cblGenre_Init( ) and, 87
OnInit( ), modifying initialization phase of page loading, 234
OnItemCreated attribute, 21
not included in VB.NET version, 395
populating summary footer, 384
SortColumn property and, 419
OnItemDataBound attribute, 21, 32, 370
event handlers
C# code example, 34
parameters for, 372
VB.NET code example, 34
not included in VB.NET version, 363, 395
setting bug severity color, 373
OnListChanged( ), 625, 630
OnLoad attribute, 21
OnLoad( ), modifying load phase of page loading, 234
OnPageIndexChanged attribute, 423
not included in VB.NET version, 395
OnPreRender attribute, 21
OnPreRender( ), modifying PreRender phase of page loading, 234
OnSelectedIndexChanged attribute, 21, 98, 106
DataGrid control and, 445
ListBox control and, 625
not included in VB.NET version, 395
OnSelectionChanged attribute, 158
OnServerClick attribute vs. OnClick attribute, 40
OnServerValidate attribute (CustomValidator control), 327
OnSortCommand attribute
event handler, implementing, 416-419
not included in VB.NET version, 395
OnTextChanged attribute, 21, 64
OnUnload attribute, 21
OnUpdateCommand attribute (DataGrid control), 590
implementing event handler for, 594-596, 600
OnVisibleMonthChanged attribute, 197
Open value (Status field), 905
Operator attribute (CompareValidator control), 316
values for, 314
Option Explicit On statement, requiring early binding, 803
Option Strict statement, imposing type-safe behavior, 803
Original value (DataRowVersion enumeration), 533, 552
originalUrl attribute of <trust> section, 884
OtherMonthDayStyle property (Calendar control), 152, 248
/out:<filename> parameter for compiling DLLs, 711
/out: parameter (WSDL utility), 719, 723, 725
outer joins, 903
output caching, 753-767
enhancing performance with, 798
output directories, specifying, using /out: parameter, 719, 723, 725
output parameters, 492, 512
OutputCache directive, 240, 754-759
OutputCache module in <httpModules> section, 878
Overline subproperty (Font class), 60
overloaded constructors used by DateTime class, 167
overloading methods, 90, 474
Cache class and, 774
MessageName property and, 686-689
P[ Top ]
Page attribute (Reference directive), 241
Page class
code-behind files and, 199
creating control trees, 234
Page directive, 10
.aspx files modified to use code-behind, 202-204
attributes of, 240
code-behind files and, 199
HTML server controls and, 40
page-level tracing, adding, 269
page-specific error pages, 296
Table controls and, 119
page events, 24
page navigation and DataGrid control, 422
PageButtonCount attribute (DataGrid control), 423
PageIndexChanged event, 423
pageLayout property, 13, 263, 738
page-level tracing, 269-271
Page_Load( ), 17
binding data to
DataList control, 578-580
Repeater control, 574-576
Table control, 617
C# code example, 257, 267, 435, 441
Calendar control and, 168, 255-257
defining table cells dynamically, 124
event arguments and, 23
HTML server controls and, 46
Panel control and, 133
populating
DropDownList controls, 107, 332
tables in ASP.NET, 28
retrieving Request.QueryString collection, 389
testing value of IsPostBack property, 25
VB.NET code example, 257, 267, 437
writing to the Trace object, 274
pageOutput property of <trace> section, 276, 879
Pager (ListItemType enumeration), 351
PagerStyle element (DataGrid control), 423
<pages> section of <system.web>, 875
PageSize attribute (DataGrid control), 423
page-specific error pages, 296
Panel control, 130-135
adding to BugHistory table, 446
C# code example, 130-132
properties not inherited from WebControl class, 130
VB.NET code example, 134
Parameter class, 533
Parameters collection, 490
extracting values from, 493
parameters for command-line compilers, 711
_parent value
Target property (AdRotator control), 142
Target property (HyperLink control), 69
parent/child relationships
as represented in XML, 461
displaying in data grid, 444-454
ParentRelations property (DataTable class), 432
ParseChildren attribute, 661
Pascal-casing
attribute/tag names, 867
variable names, 393
Passport authentication, 808, 816, 881
Passport Logon Service, 816
<passport> section of <authentication> section, 882
PassportAuthentication module in <httpModules> section, 878
PassportAuthenticationModule, 816
password attribute
<identity> section, 880
<processModel> section, 835
<user> section, 882
Password attribute, providing values for, 622
/password:<password> parameter (WSDL utility), 725
passwordFormat attribute of <credentials> section, 823, 882
passwords, validating with CompareValidator control, 314-322
path attribute
<forms> section, 823, 881
<location> section, 884
PathType parameter, 862
PE (Portable Executable) files and assemblies, 893
People table, 427
adding new tables for, 473
primary key, creating, 474
structure of, 905
performance
ASP.NET-specific issues, 797-800
asynchronous consumption of web services, issues with, 751
benchmarking programs, 804
boosting
by disabling session state, 231
by disabling view state, 210
caching and, 234, 684, 709, 752-805
connection pooling and, 425
database access issues, 804
degrades as simultaneous requests increase, 222
.NET-specific issues, 800-804
profiling applications, 804
PerformanceCounter component (System.Diagnostics namespace), 805
persistence and application state, 222
persistent cookies, 820
persisting datasets, 528
Petrusha, Ron, 211
physical vs. virtual directories, 839-842
configuration hierarchy, 866
policyFile attribute of <trustLevel> section, 883
populating tables
using ASP.NET, 28-31
using classic ASP, 26-28
Portable Executable (PE) files and assemblies, 893
postback
AutoPostBack property
CheckBox control, 76
CheckBoxList control, 84
DropDownList control, 334
TextBox control, 64
data binding and, 334-336, 578
IsPostBack property
CheckBoxList control, 341
DropDownList control, 106, 334
Table control, 124
testing value of, 25
vs. non-postback events, 25
web page lifecycle during, 236
PreRender event, 21, 24, 234
Repeater control, 569
presentation code, separating from executable code, 199-208
PrevMonthText property (Calendar control), 149, 247
avoiding syntax problems using character entities, 248
primary keys
for Bugs table, 445, 590
for People table, 474, 900
relationships among Bugs, BugHistory, and People tables, 906
PrimaryKey property (DataTable class), 432, 474
primitive data types for web services, 693-695
Priority parameter (Add/Insert methods), 786
private access modifier, 201
Private value (HttpCacheability enumeration), 795
private variables, setting, 392
<processModel> section of <system.web>, 878
application identity, 835
profiling applications, 804
Programming C#, 9, 23, 60, 211, 275
programming, linear vs. event-driven, 20
Programming Visual Basic .NET, 9
projects
creating code-behind files using Visual Studio .NET, 712-717
creating in Visual Studio .NET, 12
Properties Window (Visual Studio .NET), 13
Property keyword, 213
protected access modifier, 201, 206
protected friend access modifier (VB.NET), 201
protected internal access modifier (C#), 201
protection attribute of <forms> section, 822, 881
/protocol:<protocol> parameter (WSDL utility), 725
protocols and web services, 667, 671-674
proxy classes, 667
compiling, 729
creating, 669
creating DLLs using batch files, 730
instantiating in web page source code, 732, 736, 740
manually generating source code, 724-726
methods for, 729
namespaces needed by, 728
original vs. generated source files, 726-729
proxy DLLs, 670, 676
adding references to, using Solution Explorer, 740
adding to consuming application
using asynchronous method calls, 742-751
using text editors, 731-738
using Visual Studio .NET, 738-742
proxy method calls for GetHistory( ), 746
public access modifier, 201, 206
public key encryption technology, 829
Public value (HttpCacheability enumeration), 795
Q[ Top ]
queries in SQL, 902
Query analyzer (SQL Server), 485
query strings, retrieving, 389, 392
question mark (?)
conditional operator, 578
query strings and, 389
R[ Top ]
RadioButton control, 71, 76-80
C# code example, 77
DataList control and, 577
non-postback event, 26
VB.NET code example, 78
RadioButtonList control, 71, 80, 98-102
binding ArrayLists to, 339-348
in bug reporting form, 302-304
C# code example, 99, 343
code-behind source file (C#), 344-348
font samples, setting attributes of, 113
font sizes, setting, 125-128
non-postback event, 26
RequiredFieldValidator control and, 303
Table control and, 120
transactions, choosing, 509
VB.NET code example, 100
RaisePostBackEvent( ), 236
RaisePostDataChangedEvent( ), 236
RangeValidator control, 299, 322-324
code example, 323
rbl_SelectedIndexChanged event handler, 227
ReadOnly property (TextBox control), 64
read-write application state, use with caution, 222
ReadXML( ) (DataSet class), 431
ReadXMLSchema( ) (DataSet class), 431
record locking to prevent data corruption, 549
RedirectFromLoginPage( ), 820, 826
Redirection status codes, 271
redirectUrl attribute of <passport> section, 882
/reference: command-line switch, 237
Reference directive, 241
/reference:<file list> parameter for compiling DLLs, 711
reformatting code, disabling option for, 247
Register directive, 241
custom controls, registering with web pages, 633
user controls, registering with web pages, 610, 615
Registers window, 289
RegularExpressionValidator control, 299, 324-326
code example, 325
RejectChanges( )
DataRow class, 433
DataSet class, 431
DataTable class, 432
relational data
for Bugs, BugHistory, and People tables, 906
code-behind page, source code for, 462-468
creating objects to model relationships, 458-468
database technology for, 899-903
displaying in data grid, 442-444
Relations property (DataSet class), 431, 458
relative URLs and ImageUrl property, 136
RemoteOnly value of mode attribute, 294, 875
<remove> section of <httpHandlers> section, 877
Remove( ) (Cache class), 773
RemoveAt( ) (Cells collection), 385
Removed (CacheItemRemovedReason enumeration), 793
RemovedCallback( ), 787-793
Render( ), 235
composite controls and, 657, 661-664
custom controls and, 636-638
RenderBeginTag( ), 637, 663
RenderEndTag( ), 637, 663
RepeatColumns property
CheckBoxList control, 84
DataList control, 578
RepeatDirection property
CheckBoxList control, 84
DataList control, 578
Repeater control, 53, 349-351, 569-576
binding data to, 568, 574-576
postback event, 26
templates, 569-576
vs. Table control, 113
RepeaterItem objects, 351
RepeatLayout property (CheckBoxList control), 84
requestEncoding attribute of <globalization> section, 876
requestLimit property of <trace> section, 276, 879
Request.QueryString collection, 389, 392
Required value (TransactionOption enumeration), 690
RequiredFieldValidator control, 299-309
adding to control comparison code, 315
HTML source example, 305-307
RequiresNew value (TransactionOption enumeration), 690
responseEncoding attribute of <globalization> section, 876
Response.Write( ), 219, 857
.resx files, 714
Right value (ImageAlign property), 137
role-based security, 812
roles attribute of <allow> and <deny> sections, 832, 882
rolling back transactions, 508
Roman, Steven, 211
root objects in transactions and web methods, 689
round trips to servers, minimizing, 799
@@RowCount keyword, 551
RowFilter property (DataView class), 457
rows
adding data to tables, 472
adding, using an array of objects, 473, 530
creating in DataGrid control, 387
deleting from datasets, 529
integrity of hand-created rows, 530
iterating through, 462
table organization and, 899
vs. objects, 900
Rows property
DataTable class, 432
ListBox control, 111
Table control, 113
TextBox control, 64
RowSpan property (TableCell control), 124
RowUpdated event, 551-553
Rule enumeration (DeleteRule/UpdateRule properties), 476
runat attribute, 22, 37, 47
submit button and, 40
runtime handler declaration, 871
S[ Top ]
SaveViewState( ), 235
scalability and application state, 222
scavenging, 786
schema, XML, 674
scope attribute, specifying value of object, 864
script blocks
events in, 848-858
in global.asax file, 848-862
static variables/instance methods in, 859-862
C# code example, 861
VB.NET code example, 860
scripting code, adding to web pages, 8
Second property (DateTime class), 159
section handler declarations, 868-871
custom configuration sections
accessing name/value pairs, 886
returning objects, 889-891
<section> tag (handler declarations), 869, 886
<sectionGroup> tag, 871, 889
Secure Sockets Layer (SSL)
Basic authentication and, 813
Forms authentication and, 817
Passport authentication and, 816
security, 806-836
controlling, using configuration files, 880-884
role-based, 812
for web services, 668
<securityPolicy> configuration section, 883
Select statement (SQL)
creating relationship between tables, 460
creating stored procedures, 484-486
displaying relational data in data grid, 443
<select> tag, 46
Select( ) (DataTable class), 432
SelectCommand property (SqlDataAdapter class)
creating/displaying datasets, 527
setting, 523
Selected property (CheckBoxList control), 84
SelectedDate property (Calendar control), 149, 160
SelectedDates property (Calendar control), 149, 160
SelectedDatesCollection objects, 160
SelectedDayStyle property (Calendar control), 152, 248
SelectedIndex property
CheckBoxList, 98, 102
DataGrid control, 414
RadioButtonList controls, 98, 102
SelectedIndexChanged event, 21, 94, 98
C# code example, 266
modifying handler for, 630
VB.NET code example, 266
SelectedItem (ListItemType enumeration), 351
SelectedItem property
CheckBoxList, 98, 102
DropDownList control, 595
RadioButtonList controls, 98, 102
SelectionChanged event, 154-177, 257
C# code example, 156-157
VB.NET code example, 158
SelectionChanged( ), 158, 166
SelectionMode property
Calendar control, 149, 150, 247
ListBox control, 111
SelectMonthText property (Calendar control), 149
SelectorStyle property (Calendar control), 152, 248
SelectRange( ), 177
_self value
Target property (AdRotator control), 142
Target property (HyperLink control), 69
Separator (ListItemType enumeration), 351
separators, testing if items are, 32
SeparatorTemplate, 570, 573
SeparatorTemplate property (Repeater control), 569
server controls (see ASP controls; HTML server controls)
Server Errors status codes, 271
Server value
HttpCacheability enumeration, 796
OutputCacheLocation enumeration, 759, 796
ServerName attribute, providing values for, 622
server-side caching, 752-805
server-side event handlers, 22
server-side includes in global.asax file, 862
server-side processing
ASP.NET events and, 22
disabling view state, 210
with HTML server controls, 37, 46, 47
server-side validation
CustomValidator control, 326
forcing, 298
OnServerValidate attribute, 327
ServerValidator( ), 327
service description documents, generating in WSDL, 718
Service1.asmx file, 715-717
session events, 24
Session module in <httpModules> section, 878
session state, 222-233
advantages of, 229
C# code example, 223-226
configuration, 230-232, 878
dictionary objects, 223
assigning string arrays, 228
assigning Text/Value properties, 227
populating, 227
retrieving string arrays from, 229
disabling, to enhance performance, 797
disabling/enabling, 230
for web methods, 685
persisting datasets to, 528
saving DataView into, 457
VB.NET code example, 226
Session.Abandon( ), 856
Session_End event, 24, 851
application state and, 215
events in global.asax file, 849
session state and, 223
SessionIDs
identifying/tracking sessions with, 223
storing, using cookies, 232
Session_OnEnd event (ASP), 21
Session_OnStart event (ASP), 21
Session_Start event, 24, 851
application state and, 215
events in global.asax file, 849
session state and, 223
Session.Abandon( ) and, 856
SessionState class, 223
<sessionState> section of <system.web>, 231, 878
disabling for entire application, 797
Set( ) (SortColumn property), 417
SetAuthCookie( ), 825
SetCacheability values (HttpCacheability enumeration), 795
SetDefault value (Rule enumeration), 476
SetExpires( ), 794
SetMaxAge( ), 796
SetNoServerCaching( ), 796
SetNull value (Rule enumeration), 476
SetSlidingExpiration( ), 796
Severity table, 429
creating data relationship with BugHistory table, 458-468
SGML (Standard Generalized Markup Language), 673
SHA1 value of passwordFormat attribute, 823, 882
shadow copies of DLLs, creating, 894
Shared keyword (VB.NET), 859
ShowDayHeader property (Calendar control), 149, 152
ShowFooter attribute (DataGrid control), 384
ShowGridLines property (Calendar control), 149, 152, 247
ShowMessageBox attribute (ValidationSummary control), 309
ShowNextPrevMonth property (Calendar control), 149, 152, 247
ShowSummary attribute (ValidationSummary control), 309
ShowTitle property (Calendar control), 150, 152
signatures, 731
callback methods and, 792
method overloading and, 686
SignOut( ), 828
Simple Object Access Protocol (see SOAP protocol)
single selection list boxes, 111
Size property, using instead of HtmlTextWriter, 637
Size subproperty (Font class), 60
SkipAllRemainingRows value (UpdateStatus enumeration), 553
SkipCurrentRow value (UpdateStatus enumeration), 553
SlidingExpiration parameter (Add/Insert methods), 784-786
.sln files (Solution Explorer), 713
sn.exe utility, generating strong names, 897
SOAP (Simple Object Access Protocol) protocol, 665, 674
Description property
of WebMethod attribute, 684
of WebService attribute, 692
MessageName property of WebMethod attribute, 686
proxy classes and, 729
SoapHttpClientProtocol class, 674, 729
Solution Explorer, 12, 17
adding references to proxy DLLs, 740
creating web services using code-behind files, 713-715
editing web.config file, 276
Sort command event, creating event handler for, 415
sort symbols, adding to columns in DataGrid controls, 419-422
SortAscend property, 417
SortColumn property, 416, 422
SortExpression attribute of BoundColumn element, 416
source code and compiler references, 711
SourceColumn property (Parameter class), 533-535
SourceVersion property (Parameter class), 533-535
spAddBug stored procedure, 512
spAddBugWithTransactions stored procedure, 507, 509
spBugsNoHistory stored procedure, 504
spBugsWithIDs stored procedure, 526
spDeleteBugFromDataSet stored procedure, 532
spInsertBugFromDataSet stored procedure, 535
sprocs (see stored procedures)
spUpdateBugFromDataSet stored procedure, 534
spUpdateBugFromDataSetWithConcurrency stored procedure, 550
SQL Server Query analyzer, 485
SQL (Structured Query Language)
crash course in, 902
data classes in .NET framework, 2
joining tables in, 903
managed providers, 438
manipulating the database, 903
updating data, 495-504
C# code example, 497-500
VB.NET code example, 500-503
SqlCommand class, 433, 455
connection transactions and, 512
creating delete command, 533
invoking stored procedures with explicit parameters, 490
SqlDataAdapter class and, 523
SqlCommandBuilder, 564
creating, 566
SqlConnection class, 433, 455
connection transactions and, 512
sqlConnectionString attribute of <sessionState> section, 232, 879
SqlDataAdapter class, 433, 891
updating data using datasets, 523
updating databases, 537
SqlDataReader class, 434, 454-456, 504
enhancing performance with, 804
SqlRowUpdatedEventArgs class, 553
SqlTransaction object, instantiating, 512
Src attribute
Assembly directive, 238, 848
Control directive, 239, 618
Page directive, 200, 241
SSL (Secure Sockets Layer)
Basic authentication and, 813
Forms authentication and, 817
Passport authentication and, 816
Start Page (Visual Studio .NET), 11
startup handler declaration, 871
state bag, 211-214
state for web services
preserving, 668
vs. cached data, 752
state management capabilities, 208-233
application state, 214-222
session state, 222-233
state bag, 211-214
view state, 210
StateBag class
C# code example, 211
VB.NET code example, 212
stateConnectionString attribute of <sessionState> section, 232, 879
StatementType enumeration, 552
static keyword (C#), 859
static objects, providing information globally across applications, 222
static variables in script blocks, 859-862
static web pages, creating, 7
status codes, 270
Status field of BugHistory table, 905
stepping through code, 283
StockTicker.cs file, 727
StockTickerVB.vsdisco file, 715
stored procedures, 484-494
capturing return values from, 492-494
connection transactions, implementing, 512-522
creating, 484-486
database transactions, implementing, 507-511
deleting bug records, 532-534
enhancing performance with, 804
handling concurrency errors, 550
inserting records into databases, 535
invoking
with explicit parameters, 490-492
with inline arguments, 489
programmatically, 487-489
retrieving data from databases, 524-527
updating databases, 534
StreamWriter class, 849
Strict attribute
Control directive, 239, 618
Page directive, 214, 241
Strikeout subproperty (Font class), 60
StringBuilder class, 97, 342
enhancing performance with, 800-802
strings
concatenating, performance issues with, 800-802
converting DateTime objects to, 159
creating connection strings, 436
invoking stored procedures with no parameters, 487
modifying, to use properties in code, 621
using DataReaders, 455
creating with StringBuilder class, 97
MaxLength property and, 471
strong names, generating, 897
Structured Query Language (see entries under SQL)
style properties of Calendar control, 152-155
subproperties of Font class, 60
substitution parameter ({0} symbol), 371
Successful status codes, 271
.suo files (Solution Explorer), 713
Supported value (TransactionOption enumeration), 690
survivability and application state, 222
switches for WSDL utility, 725
symbolic debugger, 12, 277-291
synchronous event handler code example, 745
synchronous vs. asynchronous method calls, 729, 742
syntax errors, 291
System colors, 248
System Performance Monitor (Windows), 804
SYSTEM username for ASP.NET processes, 834-836
System.Collections.ICollection interface and DataSource property, 351
System.Configuration namespace, 873
System.Data namespace, 430
System.Data.Dataview objects and DataSource property, 351
System.Data.OleDb namespace, 433
System.Data.SqlClient namespace, 433
System.Data.SqlClient.SqlTransaction class, 506
System.DateTime objects, returned by TodaysDate property, 158
System.dll assembly file, 886
System.Drawing namespace, 374
System.EnterpriseServices, adding to web services, 690
System.Enum.GetName( ), 552
<system.net> configuration section, 873
System.Object class, 53
System.Reflection namespace, 897
<system.web> configuration section, 231, 874-880, 889
System.Web.Caching.OutputCacheModule class, 878
System.Web.Security.FileAuthorization-Module class, 878
System.Web.Security.FormsAuthentication-Module class, 878
System.Web.Security.PassportAuthentication-Module class, 878
System.Web.Security.UrlAuthorization-Module class, 878
System.Web.Security.WindowsAuthentica-tionModule class, 878
System.Web.Services.WebService class, 681
System.Web.SessionState.SessionState-Module class, 878
System.Web.UI.Control class, 53
System.Web.UI.Page class, 199, 206
System.Web.UI.WebControls namespace, 53
button-like ASP controls, 67
list-bound controls, 349
System.Web.UI.WebControls.WebControl class, 632
T[ Top ]
tabbed document interface (VS.NET), 11
Table control, 113-123
C# code example, 114-117
properties not derived from other controls, 122
VB.NET code example, 118
vs. DataList controls, 113
Width property and, 123, 129
Table property (DataRow class), 433
<table> tag, 46
vs. TableCell control, 113
TableCell control, 113, 123-128
controlling cell width, 128
creating, 126
DayRender event and, 179
displaying message in cell, 386
setting color properties of, 374
TableHeaderCell control, 113, 123-128
controlling cell width, 128
TableMappings collection, 527
TableRow control, 113, 123
creating, 126
tables
database organization and, 899
design issues, 900
joining, 903
populating
using ASP.NET, 28-31
using classic ASP, 26-28
relationships among, 906
vs. classes, 900
Tables property (DataSet class), 431
tag prefixes
custom controls and, 633
user controls and, 610
tags
HTML, 46, 112
XML, 143, 674, 867
/target:library parameter for compiling DLLs, 711
Target property
AdRotator control, 142
HyperLink control, 69
<td> tag, 46
creating, 27
vs. TableCell control, 113
TemplateColumn class
adding object to DataGrid control, 350
controlling display in edit/normal modes, 591-593
TemplateControl class
events derived from, 24
templates, 568
DataList control, 577
Repeater control, 349, 569-576
working together, shown in .aspx file, 570
Text property
CheckBox control, 76
custom control, 636
HyperLink control, 69
Label control, 59, 63, 462
ListItem object, 80-82
TableCell control, 113, 124, 386
TextBox control, 64, 594
TextAlign property
CheckBox control, 76
CheckBoxList control, 84
<textarea> tag, 46
TextBox control, 63
in bug reporting form, 304
C# code example, 61
DataList control in-place editing and, 599
extracting data from controls, 594
non-postback event, 26
properties of, 64
RequiredFieldValidator control and, 305
selecting range of dates, 169-176
VB.NET code example, 61
TextChanged event, 21, 64, 737
TextMode property (TextBox control), 64
TextTop value (ImageAlign property), 137
<th> tag, 46
vs. TableHeaderCell control, 113
This window (C#), 287
Threads window, 288
Ticks property (DateTime class), 159
tightly vs. loosely coupled connections, 665
time dependencies, 784-786
TimeOfDay property (DateTime class), 159
timeout attribute
<forms> section, 822, 881
<sessionState> section, 232, 879
timeout period, 222
TitleFormat property (Calendar control), 150
TitleStyle property (Calendar control), 152, 248
TodayDayStyle property (Calendar control), 152, 154, 248
TodaysDate property (Calendar control), 150, 158
returning objects of type System.DateTime, 158
ToFileTime( ), 159
ToLongDateString( ), 159
ToLongTimeString( ), 159
ToolTip property, 55, 69
_top value
Target property (AdRotator control), 142
Target property (HyperLink control), 69
Top value (ImageAlign property), 137
ToShortDateString( ), 158
ToShortTimeString( ), 159
ToString( ), 159, 861
<tr> tag, 46
vs. TableRow control, 113
Trace attribute (Page directive), 241, 269, 275
trace logs
page-level tracing and, 269
putting statements in, 271-275
viewing from browsers, 277
Trace object
C# code example, 272
VB.NET code example, 273
<trace> section of <system.web>, 276, 879
Trace statements, 567
trace viewer, 277
TraceMode attribute (Page directive), 241
traceMode property of <trace> section, 276, 879
Trace.Warn( ), 271
trace statement written using, 275
Trace.Write( ), 271-274
tracing, 268-277
application-level, 275-276
page-level, 269-271
putting statements in trace logs, 271-275
trace viewer, 277
Transact SQL, commenting code in, 120
Transact SQL Programming, 903
Transaction attribute (Page directive), 241
Transaction property (SqlCommand class), 512, 536
TransactionOption property (WebMethod attribute), 689-691
transactions
ACID test, 505
adding support to databases, 536
.aspx file, source code for, 520-522
implementing, 506-522
with connection transactions, 512-522
with database transactions, 507-511
rolling back, 508
updating data with, 504-522
C# code example, 513-520
Triple-DES encryption
used by Forms authentication, 822
used by Passport authentication, 816
<trust> configuration section, 884
<trustLevel> section of <securityPolicy> section, 883
Type attribute
CompareValidator control, 317
values for, 314
RangeValidator control, 323
U[ Top ]
/u command-line switch (GacUtil.exe), 898
UDDI (Universal Description, Discovery, and Integration) registry, 724
uiCulture attribute of <globalization> section, 877
UNC (Universal Naming Convention) shares, 835
Underline subproperty (Font class), 60
underlying values for properties, providing, 621, 636
Underused (CacheItemRemovedReason enumeration), 793
unhandled errors, 292
Uniform Resource Identifiers (URIs) of web services, 693
Unique property (DataColumn class), 471
UniqueConstraint class, 471
Universal Description, Discovery, and Integration (UDDI) registry, 724
Universal Naming Convention (UNC) shares, 835
Unload event, 21, 24
Unlock( ) (HttpApplicationState class), 221
Update Database button, 528
handling errors, 554
updating in the database, 532
Update DataSet button
handling errors, 554
retrieving dataset, 529
retrieving dataset from session state, 528
Update event, event handler for, 590, 594-596, 600
Update statement (SQL)
handling concurrency errors, 550
implementing connection transactions, 512
OnUpdateCommand event handler, implementing, 595
Update( ) (DataAdapter class), 434, 537, 566
UpdateCommand property (SqlDataAdapter class), 523
building with Command Builder, 566
providing command objects to, 534
setting, 524
UpdateDB( ), 503
UpdateRule property (ForeignKeyConstraint class), 475
UpdateStatus enumeration, 553
UpdateText attribute of EditCommandColumn element, 590
updating data
using Command Builder, 564-567
concurrency issues, 550-564
using datasets, 522-548
C# code example, 538-543
VB.NET code example, 543-548
multiple users and, 548-564
with SQL, 495-504
C# code example, 497-500
VB.NET code example, 500-503
with transactions, 504-522
C# code example, 513-520
uplevel browser alias, 874
uplevel browsers, 36, 51, 298
minimizing round trips using, 799
URIs (Uniform Resource Identifiers) of web services, 693
URL authorization, 831-834
UrlAuthorization module in <httpModules> section, 878
UrlEncode( ), 858
URLs
absolute/relative, 136
navigating to, using HyperLink control, 69, 374
query strings and, 389
useFullyQualifiedRedirectUrl attribute of <httpRuntime> section, 876
user control (.ascx) files, 610
Assembly directive and, 237
Control directive and, 238
event handling and, 626
Implements directive and, 239
Import directive and, 239
user controls, 36, 609-630
adding code to, 615-618
adding properties to, 619-622
Control directive, attributes of, 238, 618
event handling, 622-630
C# code example, 622-626
providing custom event arguments, 629
VB.NET code example, 626-629
fragment caching and, 760-767
properties
creating, 620
integrating into code, 621
providing underlying values for, 621
setting from client, 622
registering with web pages, 610, 615
tag prefixes and, 610
user input, validating, 297-330
<user> section of <credentials> section, 824, 882
userName attribute
<identity> section, 880
<processModel> section, 835
/username:<username> parameter (WSDL utility), 725
users attribute of <allow> and <deny> sections, 832, 882
using statement (C#), 23, 119, 200, 239, 891
UTF-8/UTF-32 character encoding parameters, 867
uuencoded data and HTTP requests, 672
V[ Top ]
validation, 297-330
client-side, 298, 308
validation attribute of <machineKey> section, 883
validation controls, 36, 52
CompareValidator, 299, 313-322
CustomValidator, 299, 326-330
RangeValidator, 299, 322-324
RequiredFieldValidator, 299-309
ValidationSummary, 309-312
ValidationExpression attribute (RegularExpressionValidator control), 325
validationKey attribute of <machineKey> section, 883
ValidationSummary control, 309-312
ValidationSummaryDisplayMode enumeration, 310
Value property
DropDownList control, 595
ListItem object, 80-82
ValueToCompare attribute (CompareValidator control), 314
variable names in C# and VB.NET, 168
variables, examining value of, 285
VaryByControl parameter (OutputCache directive), 759
VaryByCustom parameter (OutputCache directive), 759
VaryByHeader parameter (OutputCache directive), 759
VaryByParam parameter (OutputCache directive), 756-759
VaryByParam property (HttpCachePolicy class), 796
vbApplicationState.aspx file, 218
vbASPAdRotator.aspx file, 145
vbASPButtons.aspx file, 66
vbASPCalendarDayRender.aspx file, 184-186
vbASPCalendarMoreSelections.aspx file, 165-166
vbASPCalendarRangeSelection.aspx file, 174-176
vbASPCalendarSelectionChanged.aspx file, 158
vbASPCalendarVisibleMonth.aspx, 194-196
vbASPCheckboxes.aspx file, 74
vbASPCheckBoxListArray.aspx file, 86
vbASPCheckBoxListArrayValue.aspx file, 89
vbASPCheckBoxListDataBind.aspx file, 93
vbASPCheckBoxListEvents.aspx file, 96
vbASPDropDownList.aspx file, 104-105
vbASPHyperLink.aspx file, 70
vbAspImageAlign.aspx file, 140
vbASPListBox.aspx file, 109-110
vbAspPanel.aspx file, 134
vbASPRadioButtonList.aspx file, 100
vbASPRadioButtons.aspx file, 78
vbASPServerControlBasics1.aspx file, 58
vbASPServerControlBasics2.aspx file, 61
vbASPServerControls1.aspx file, 50
vbAspTable.aspx file, 118
vbCodeBehind.aspx file, 204
vbConfig-02.aspx file, 886
vbConfig-02b.aspx file, 888
vbConfig-03.aspx file, 892
vbGlobalEvents, 860
vbGlobalEvents-01.aspx file, 856
vbGlobalEvents-02.aspx file, 860
vbHelloWorld1.aspx file, 10
vbHTMLServerControls2.aspx file, 44
vbHTMLServerControls.aspx file, 39
VB.NET
commenting code, 120
creating "Hello World" example, 10
friend access modifier, 201
Page_Load code example, 437
protected friend access modifier, 201
variable names, differences with C#, 168
vs. C#
coding differences, 18
command-line compiler differences, 730
populating tables in ASP.NET, 29
VB.NET Language in a Nutshell, 211
vbObjCache-01.aspx file, 768-770
vbObjCache-02.aspx file, 777
vbObjCache-03.aspx file, 780-782
vbObjCache-04.aspx file, 788-790
vbOutputCache-01.aspx file, 755
vbOutputCache-02.aspx file, 757
vbOutputCache-03.aspx file, 794
vbOutputCache-UserControl-02.aspx file, 764
vbOutputCache-UserControl.aspx file, 761
VBScript
adding to web pages, 8
commenting code, 120
vbSessionState.aspx file, 226
vbStateBagDemo.aspx file, 212
vbStockTicker.asmx file, 677, 701-704
vbStockTickerCodeBehind.asmx file, 709
vbStockTickerConsumer.aspx file, 732-735
vbUserControl-02.ascx file, 763
vbUserControl-03.ascx file, 766
vbUserControl.ascx file, 760
verbs attribute of <allow> and <deny> sections, 832, 882
versioning information in assemblies, 843, 893
global deployment of applications, 896-898
VerticalAlign property
TableCell control, 124
TableRow control, 123
view state, 210, 235
disabling, to enhance performance, 798
SortColumn property and, 416
ViewState property, 211, 236
maintaining state for custom controls, 638, 646
virtual directories, 838-842
configuration hierarchy, 866
default web sites and, 839-842
defining with Internet Services Manager, 7
virtual root directory, creating VS.NET projects in, 244, 713
VirtualItemCount property (DataGrid control), 424
Visible property
DataGrid control, 413
displaying history data, 738
inherited by all controls, 55
VisibleDate property (Calendar control), 150, 167-169
VisibleMonthChanged event, 189-198
C# code example, 189-194, 258
hooking up to Calendar control, 258
VB.NET code example, 194-196
VisibleMonthChanged( ), 197
Visual Studio .NET
advantages of using, 4
building/running projects, 249-264
changing options in, 247
choosing colors, 248
code-behind files and, 200, 712-717
creating event-driven data table in ASP.NET, 28
creating "Hello World" example, 11-19
debugger, 277-291
editing web.config file, 276
event handler declarations, 23
getting started with, 242
hooking up event handlers to controls, 257, 262
issues with project names, 713
projects, default locations of, 244, 713
proxy DLLs
adding to consuming application, 738-742
creating and compiling, 741
user controls, support for creating, 614
web forms and, 3, 241-264
VS.NET (see Visual Studio .NET)
W[ Top ]
W3C (World Wide Web Consortium), 673
Warn( ), 271
trace statement written using, 275
Warning type (breakpoints), 283
WarningLevel attribute (Control directive), 618
Watch window, 287
web application directories, 841
Web colors, 248
web farms/gardens
application state and, 222
enhancing performance with, 799
web forms
classes for, 3
programming, 199-264
Web Forms controls, 13, 16
web methods, 669
attaching descriptive strings to, 684
enabling session state for, 685
returning cached results to clients, 684
returning DataSet objects to consuming clients, 700
for StockTicker web service, 676
syntax for defining, 683
transactions, participating in, 689-691
web pages
control trees and, 234
creating tables using ASP controls, 113
creating with HTML, 7
default web sites, 839-842
hand-coded vs. Visual Studio .NET page-layout differences, 263
with in-place editing, 580-596
lifecycle of, 233-236
vs. web services, 675, 679
web server controls (see ASP controls)
web services
access to application state via HttpContext object, 680-682
classes for, 3
classes, using with, 695-699
CLR-supported data types for, 693-695
code-behind files, 668, 708-717
converting from inline code to, 709-717
rationale for using, 676
using text editors, 709-712
using Visual Studio .NET, 712-717
consuming (see consuming web services)
creating, 675-721
DataSets returned by, 699
deploying, 720
descriptions of, 668
development process, 668
directories for listing services, 667
discovery documents, 667
creating, 717-720
DLL files (see proxy DLLs)
inline code, 675
locating, using UDDI registry, 724
overview of, 665-674
parameters/return types for, 693-695
protocols, 667, 671-674
proxies (see entries under proxy)
security for, 668
state, preserving if necessary, 668
vs. web pages, 675, 679
Web Services Description Language (see WSDL)
WebClientProtocol class, 674
web.config file, 715, 864-868
anonymous access, disallowing, 809
application-level tracing, 275
application-wide error pages, 292-295
appSettings configuration section in, 872
ASP.NET, configuring, 821-823
authenticating against, using Forms authentication, 823-825
authentication providers, enabling, 808
configuration hierarchy, 865
configuration sections
custom, 885-889
handler declarations for, 868-871
configuring session state, 230-232
debugging, disabling/enabling, 290
editing in Visual Studio .NET, 276
format of, 867
Forms authentication, 822, 834
<location> tag and, 884
applying access rules to subdirectories, 833
<machineKey> tag and, 883
Passport authentication, 816
<securityPolicy> tag and, 883
<trust> tag and, 884
view state, disabling, 210
Windows authentication, 811
WebControl class, 53
CheckBox control properties not inherited from, 76
controls derived from, 71
list-bound controls and, 349
Panel control properties not inherited from, 130
<webControls> section of <system.web>, 879
WebCustomControl1.cs file, 641
WebCustomControl1.vb file, 642
Webding text symbols, 421
WebForm1 class, creating, 253
WebForm1.aspx file (testing custom controls), 639
WebForm1.aspx.cs file, 251
WebForm1.aspx.vb file, 251, 253
WebMethod attribute, 682
properties of, 683-691
WebMethodAttribute class, 682
<webRequestModules> section of <system.net>, 873
WebService attribute, 691-693
properties of, 692
WebService class, deriving from
advantages of, 680
limitations of, 682
WebService directive, 679
code-behind files and, 709
<webServices> section of <system.web>, 880
WeekendDayStyle property (Calendar control), 152, 248
width of cells, controlling, 128
Width property, 56
Panel control, 133
Table control and, 123, 129
Windows authentication, 808, 811-816, 881
Basic, 813
Digest, 814
Integrated, 815
role-based security, 812
Windows forms, classes for, 3
Windows multi-selection techniques, 111
Windows System Performance Monitor, 804
WindowsAuthentication module in <httpModules> section, 878
WithEvents keyword, 626
World Wide Web Consortium (W3C), 673
Wrap property
Panel control, 130
TableCell control, 124, 129
TextBox control, 64
Write( ), 271-274
WriteFile( ), 217, 849, 857
adding public keyword to, 860
server-side includes and, 862
WriteXml( ) (DataSet class), 431, 461
WriteXmlSchema( ) (DataSet class), 431
WSDL (Web Services Description Language), 668
generating files using disco.exe, 722
generating service description documents, 718
MessageName property and, 689
Solution Explorer and, 741
wsdl.exe utility, 724-726
switches available for, 725
X[ Top ]
XCOPY deployment, 894
XML
manipulating data using .NET framework, 3
Namespace property of WebService attribute, 692
representing parent/child relationships, 461
tags
advertisement files, 143
machine.config/web.config files, 867
web services and, 674
web services and, 665, 673
XmlDataDocument object, 778
Y[ Top ]
Year property (DateTime class), 159
Return to Programming ASP .NET
About O'Reilly | Contact | Jobs | Press Room | How to Advertise | Privacy Policy
|
© 2008, O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.