[ Symbols ], [ A ], [ B ], [ C ], [ D ], [ E ], [ F ], [ G ], [ H ], [ I ], [ J ], [ K ], [ L ], [ M ], [ N ], [ O ], [ P ], [ Q ], [ R ], [ S ], [ T ], [ U ], [ V ], [ W ], [ X ] #LINK<Symbols[ Top ]>#
. and .. for directories, 142
<%-%> delimiters, 15
<%@ ... %> directive syntax, 168
<%=-%> delimiters, 16-19 #LINK<A[ Top ]>#
Abandon method (Session), 163
aborting transactions, 62, 63
AbsolutePage property (Recordset), 202
AbsolutePosition property (Recordset), 202, 208-210
ACTION attribute (<FORM>), 90
Active Messaging (see CDO for NTS)
ActiveCommand property
Recordset object, 202
ActiveConnection property, 210-212
Connection object, 193
Record object, 200
Recordset object, 202
ActiveScripting Organization, 442
ActiveX controls, HTML forms with, 91
ActiveX Data Objects Extensions (ADOX), 188
ActiveX Data Objects Multidimensional (ADO MD), 188
ActiveX Data Objects (see ADO)
ActualSize property (Field), 198
Ad Rotator component, 273-284
example of using, 281-284
GetAdvertisement method, 273, 280
instantiating, 277
properties reference, 278-280
required files, 274
rotator schedule file, 275-276, 282
Add method
Attachments collection, 303
Contents collection and, 35
Folders collection, 361
Messages collection, 305
Recipients collection, 308
AddHeader method (Response), 121
AddNew method (Recordset), 204, 241-244
Address property
AddressEntry object, 301
Recipient object, 307
AddressEntry object, 301
ADO (ActiveX Data Objects), 187-272
application-level objects to maintain connections, 31
DLLs required for, 190
Errors collection (Connection), 241
instantiating, 190
methods reference, 241-272
object model, 192-208
properties reference, 208-240
Release 1.6, components of, 188
ADO MD (ActiveX Data Objects Multidimensional), 188
adovbs.inc file, 190
ADOX (ActiveX Data Objects Extensions), 188
Adrot.dll library, 274
advertisements (see Ad Rotator component)
ALL_HTTP element (ServerVariables), 96, 439
ALL_RAW element (ServerVariables), 96
App Debugging tab (MMC), 449
App Mappings tab (MMC), 448
App Options tab (MMC), 449
AppendChunk collection
Field object, 199
Parameter object, 200
AppendToLog method (Response), 122, 166
Application object, 10, 29-44
collections reference, 32-40
methods reference, 41-42
OnStart and OnEnd events, 10, 42-44
GLOBAL.ASA file for, 177, 178-180
Application property (CDO), 300
application-level scope, 10, 30-32
corresponding type libraries, 182
creating objects with, 134
objects added with <OBJECT>, 39
transactional objects and, 63, 163
applications
counter variables and, 348
file manipulation capabilities, 354-383
page-level counters, 408
user sessions and, 147
APPL_MD_PATH element (ServerVariables), 96
APPL_PHYSICAL_PATH element (ServerVariables), 96, 435
arrays, adding to Contents collection, 36, 159
ASN.1 identifiers, 80
ASP (Active Server Pages)
configuring on IIS, 445-450
converting CGI to, 428-439
extensions for, 23-25
functions, 19-22
intrinsic objects, list of, 425-427
introduction and demonstration, 6-9
non-Microsoft platforms, 440-444
object model, 9-11
redirecting execution, 142-144
scripts calling themselves, 90-91
and executing, 135
ASPBufferingOn setting, 105
ASPCode property (ASPError), 48
ASPDescription property (ASPError), 49
ASPError object, 10, 45-60
example, 56-60
AspScriptTimeout property, 132
AtEndOfLine property (TextStream), 362
AtEndOfLog method (Logging Utility), 392
AtEndOfStream property
FileSystemObject object, 363
TextStream object, 362
AttachFile method (NewMail), 306, 320
Attachment object, 301
Attachments collection (Message), 302, 304
Attachments property (Message), 304
attachments to messages, 301-303, 320-322
AttachURL method (NewMail), 306, 321-322
Attributes property, 357, 360, 364-366
Connection object, 194
Field object, 198
Parameter object, 199
Property object, 200
authentication information in HTTP request, 97
AUTH_PASSWORD element (ServerVariables), 97
AUTH_TYPE element (ServerVariables), 97, 435, 437
AUTH_USER element (ServerVariables), 97
AvailableSpace property (Drive), 356, 366 #LINK<B[ Top ]>#
Background property (MyInfo), 402
Basic Clear Text authentication, 410, 412
batch-update mode, 243
deleting recordsets, 249
Bcc property (NewMail), 306, 308
BeginTrans method (Connection), 195
BeginTransComplete object event (Connection), 196
BinaryRead method (Request), 101-102
BinaryWrite method (Response), 124-125
blind carbon copies, 308
Body property (NewMail), 306, 309
<BODY> tags, server-side functions in, 21
BodyFormat property (NewMail), 306, 310
BOF property (Recordset), 202, 212-213
Bookmark property (Recordset), 202
Border property (Ad Rotator), 278
borders around advertisement graphics, 278
BrowsCap.dll library, 286
BrowsCap.ini file, 286-290
Browser Capabilities component, 23, 285-295
instantiating, 290
PropertyName property, 291
required files, 286-290
browsers (see web browsers)
BrowserType object, creating, 285-295
Buffer property (Response), 105-107
clearing, 125
End method and, 127
BuildPath method (FileSystemObject), 359
BytesReceived property (Logging Utility), 386
BytesSent property (Logging Utility), 387 #LINK<C[ Top ]>#
CacheControl property (Response), 107
CacheSize property (Recordset), 202
caching web pages, 107
expiring cache, 111-113
Cancel method
Connection object, 193, 195
Record object, 201
Recordset object, 204
Stream object, 207
CancelBatch method (Recordset), 204
CancelUpdate method (Recordset), 205
carbon copies, 311
carriage return, writing, 130
Category property (ASPError), 50
Cc property (NewMail), 306, 311
CDO for Exchange, 297
CDO for NTS, 296-324
instantiating CDOs, 297
object model, 299-308
version of, 320
Cdonts.DLL library, 297
ceCertPresent constant, 79
CERT_COOKIE element (ServerVariables), 97
CERT_FLAGS element (ServerVariables), 97
Certificate value (Key property), 79
certificates (see digital certificates)
CERT_ISSUER element (ServerVariables), 97
CERT_KEYSIZE element (ServerVariables), 97
CERT_SECRETKEYSIZE element (ServerVariables), 97
CERT_SERIALNUMBER element (ServerVariables), 97
CERT_SERVER_ISSUER element (ServerVariables), 97
CERT_SERVER_SUBJECT element (ServerVariables), 97
CERT_SUBJECT element (ServerVariables), 98
ceUnrecognizedIssuer constant, 79
CGI applications, 4
converting to ASP applications, 428-439
environment variables, 435-439
version used by web server, 98
CGI_ variables (WinCGI), 437-439
character sets
code page for dynamic content, 149
setting, 169
character sets for HTTP responses, 109
Charset property
Response object, 109
Stream object, 206
Chili!ASP product, 440
ChooseContent method (Content Rotator), 345
Chr function, 130
Class property (CDO), 300
Clear method (Response), 125
Clickable property (Ad Rotator), 279
client certificates (see digital certificates)
ClientCertificate collection (Request), 78-81, 97
ClientCustomHeader header, 121
ClientIP property (Logging Utility), 387
client-side scripting, 12-14
as dynamic script output, 16
Clone method (Recordset), 205, 244-246
Close method, 246
Connection object, 195
Record object, 201
Recordset object, 205
Stream object, 207
TextStream object, 362, 372
CloseLogFiles method, 386
closing
data servers or recordsets, 246
text files, 372
code reuse, 19-22
CODEPAGE directive, 150, 169
CodePage property (Session), 149-150, 169
Collaboration Data Objects (see CDO for NTS)
Column property
ASPError object, 51
TextStream object, 362
COM objects
ADO (see ADO)
CDO for NTS (see CDO for NTS)
type libraries, 182-184
Command object (ADO), 192-194
commands, database (see database commands)
CommandText property
Command object, 213-215
Connection object, 193
CommandTimeout property, 193, 194, 215-217
CommandType property
Command object, 217-219
Connection object, 193
comments and troubleshooting
Ad Rotator component, 277
ADO with ASP, 191
ASPError object, 46-48
Browser Capabilities component, 291
CDO for NTS, 298
Content Linking component, 328
Content Rotator component, 345
Counters component, 350
File Access components, 355
global variables, 30-32
GLOBAL.ASA file, 178
Logging Utility component, 386
MyInfo component, 401
Page Counter component, 408
Permission Checker, 412
preprocessor directives, 169
QueryString collection length, 94
Request object, 76
Response object, 104
server-side includes, 173
Session object, 147-149
Tools component, 415
transactional scripts, 62
committing transactions, 62, 64
CommitTrans method (Connection), 195
CommitTransComplete object event (Connection), 196
Common Gateway Interface (CGI), 4
version used by web server, 98
CommunityLocation property (MyInfo), 402
CommunityName property (MyInfo), 402
CommunityPopulation property (MyInfo), 402
CommunityWords property (MyInfo), 402
CompanyAddress property (MyInfo), 402
CompanyDepartment property (MyInfo), 402
CompanyName property (MyInfo), 402
CompanyPhone property (MyInfo), 402
CompanyWords property (MyInfo), 402
CompareBookmarks method (Recordset), 205
configuring ASP on IIS, 445-450
ConnectComplete object event (Connection), 196
connection, checking, 113
Connection object, 194-196
closing, 246
Errors collection, 241
Recordset objects and, 202
selecting for Recordset or Command, 210-212
connections to database servers, 194-196
opening, 260
timeouts (wait lengths), 221-222
(see also database servers)
ConnectionString property (Connection), 194, 220-221
ConnectionTimeout property (Connection), 194, 221-222
content, dynamic, 4-6
ASP (see ASP)
CGI applications, 4
code page for, 149
ISAPI, 5-6
JavaScript and VBScript, 12-14, 22
locale for, 150-151
page counters, 406-409
table of contents (example), 328
user information (see Session object)
Content Linking component, 325-341
example, 337-341
instantiating, 327
methods reference, 329-337
Content Linking list file, 326
counting entries in, 329
description of item in, 331, 333, 335
position in, 330
retrieving URL from, 332, 334, 336
Content Rotator component, 342-347
content schedule file, 343-344
instantiating, 345
methods reference, 345-347
content schedule file, 343-344
content, static, 3
HTML, 12
ContentBase property
Attachment collection, 302
Message object, 304
NewMail object, 306, 312
ContentID property
Attachment collection, 302
Message object, 304
CONTENT_LENGTH element (ServerVariables), 98
CONTENT_LENGTH environment variable, 435, 437
ContentLocation property
Attachment collection, 302
Message object, 304
NewMail object, 306, 313
Contents collection
Application object, 32-37, 160
Session object, 153-161
CONTENT_TYPE element (ServerVariables), 98
CONTENT_TYPE environment variable, 435, 437
Content-Type header, 109
ContentType property (Response), 110
Controt.DLL library, 343
cookie dictionary, 85
Cookie: header, 84
Cookie property (Logging Utility), 387
cookies, 81-87, 117-121, 146
expiration dates, 118
session identifiers, 147, 151
Cookies collection
Request object, 84-87
Response object, 117-121
cookies, expiration dates, 82
Copy method
File object, 358, 372
Folder object, 361, 372
CopyFile method (FileSystemObject), 359
CopyFolder method (FileSystemObject), 359, 373
copying
files and folders, 372-374
recordsets, 244-246
CopyRecord method
Record object, 201
CopyTo method (Stream), 207
Count property
Attachments collection (CDO), 303
Contents collection (Application), 34
Contents collection (Session), 155
Cookie collection (Request), 84
Cookies collection (Response), 117
Drives collection, 357
Files collection, 358
Folders collection, 361
Form collection, 88
Messages collection, 305
QueryString collection, 93, 94
Recipients collection, 307
ServerVariables collection, 95
StaticObjects collection
Application object, 39
Session object, 161
counters, 348-353
page counters, 406-409
Counters component, 348-353
instantiating, 349
methods reference, 350-353
Counters.DLL library, 349
Counters.TXT file, 349
counting records in recordsets, 236-237
CreateFolder method (FileSystemObject), 359, 374
CreateObject method (Server), 11, 23, 133-135
StaticObjects collection and, 40, 163
(see also instantiating)
CreateObject method (Tools), 415
CreateParameter method (Connection), 193
CreateTextFile method
FileSystemObject object, 359
Folder object, 361
CursorLocation property
Connection object, 194
Recordset object, 202
cursors
determining type of, 222-224
opening into data source, 261-264
CursorType property (Recordset), 203, 222-224
Custom Errors tab (MMC), 448
custom library packages, 63
CustomFields property (Logging Utility), 388
customized named strings, 398-405 #LINK<D[ Top ]>#
Data Access Components SDK (Microsoft), 187
database commands
executing, 250-253
manipulating with Command object, 192-194
parameters, 199
reexecuting queries, 264
text of, 213-215
type of, 217-219
database servers
closing, 246
connections to, 194-196
information for establishing, 220-221
opening, 260
timeouts (wait lengths), 221-222
custom properties of, 200
errors, 197
application or object source, 238
code numbers for, 234-235
descriptions of, 224-226
saving recordset changes, 270-272
selecting connection, 210-212
DataMember property (Recordset), 203
DataSource property (Recordset), 203
DateCreated property, 357, 360, 367
DateLastAccessed property
File object, 357
Folder object, 360
DateLastModified property
File object, 357
Folder object, 360
DateTime property (Logging Utility), 388
debugging, Response object for, 104
DefaultDatabase property (Connection), 194
DefinedSize property (Field), 198
Delete method
Attachment object, 302
Attachments collection, 303
File object, 358, 374
Folder object, 361, 374
Message object, 304
Messages collection, 305
Recipient object, 307
Recipients collection, 308
Recordset object, 205, 247-250
DeleteFile method (FileSystemObject), 359
DeleteFolder method (FileSystemObject), 359
DeleteRecord method
Record object, 201
deleting
counters, 353
files and folders, 374
recordsets, 247-250
Denali, 6
description
Content Linking list item, 331, 333, 335
database server errors, 224-226
Description property
ASPError object, 52
Error object, 197, 224-226
dictionary, cookie, 85, 117
digital certificates
client certificate field access, 78-81
information in HTTP requests, 97-98
issuer information, 79, 97
Direction property (Parameter), 199
directory notation, MS-DOS, 142
Directory Security tab (MMC), 448
Disconnect object event (Connection), 196
disk space on drives, 366
DLLs with ISAPI, 5
DOCUMENT_ROOT environment variable, 435
Documents tab (MMC), 447
domain attribute
Cookies collection (Response), 118
Set-Cookie header, 82
Drive object, 355-357
Drive property, 357, 360, 367
DriveExists method (FileSystemObject), 359
DriveLetter property (Drive), 356
drives, 355-357
disk space remaining, 366
format type, 368
for particular file system objects, 367
Drives collection, 357
Drives property (FileSystemObject), 358
DriveType property (Drive), 356
duplicating recordsets, 244-246
dynamic content, 4-6
ASP (see ASP)
CGI applications, 4
code page for, 149
Content Rotator component, 342-347
ISAPI, 5-6
JavaScript and VBScript, 12-14, 22
locale for, 150-151
page counters, 406-409
table of contents (example), 328
user information (see Session object)
dynamic link libraries (DLLs) with ISAPI, 5 #LINK<E[ Top ]>#
ECMAScript language, 13
EditMode property (Recordset), 203
ENABLESESSIONSTATE directive, 170
encoding
HTML for display, 140
query strings for URLs, 144
ENCTYPE parameter, 98
End method (Response), 127
environment variables
converting CGI to ASP, 435-439
for web servers, 10, 95-101
EOF property (Recordset), 203, 226-228
EOS property (Stream), 206
Error object (ADO), 197
errors
Clear method for sending, 126
database servers, 197
application or object source, 238
code numbers for, 234-235
descriptions of, 224-226
displaying information about, 138-140
handling of, 10, 45-60
include files for, 175-177
HTTP status codes for, 116
reporting with type libraries, 182
response buffers and, 106
type library declarations, 183
(see also comments and troubleshooting)
Errors collection (Connection), 195, 241
events
Application object, 10, 42-44
creating objects in, 134
ObjectContext object, 61-66
Session object, 164-167
creating objects in, 134
Execute method
Command object, 250-253
database command type, 217
Connection object, 194, 196, 253
Server object, 135-138
ExecuteComplete object event (Connection), 196
executing
database commands, 250-253
queries again, 264
expires attribute (Set-Cookie header), 82
Expires property
Cookies collection (Response), 118
Response object, 111
ExpiresAbsolute property (Response), 112
expiring
cached web page data, 111-113
cookies, 82, 118
digital certificates, 79
response buffering, 106
rotated advertisements, 275-276
rotated content, 343-344
script processing on server, 132
user session-level variables, 148
user sessions (inactive), 152
waiting for database command execution, 215-217
extensions for ASP, 23-25 #LINK<F[ Top ]>#
Field object (ADO), 197
Fields collection
Record object, 201
Recordset object, 204
fields, record, 197
refreshing all in recordset, 265-267
File Access components, 354-383
file system object model, 355-362
methods reference, 372-383
properties reference, 362-371
File object, 357
File property (ASPError), 53
FileExists method (FileSystemObject), 359
FileExists method (Tools), 415
files
attaching to messages (CDO), 301-303, 320-322
attributes of, 364-366
checking for existence on server, 415
copying, 372-374
date created, 367
deleting, 374
determining if at end, 362-364
file system object model, 355-362
manipulating from applications, 354-383
moving, 378
names of, 375
opening/closing, 372, 379-380
reading from/writing to, 380-383
Files collection (Folder), 358, 361
files, inserting into scripts/content, 173-177
FileSystem property (Drive), 356, 368
FileSystemObject object, 354, 358-360
instantiating, 354
Filter property (Recordset), 203, 228-231
Find method (Recordset), 205
Flags value (Key property), 79
Flush method
Response object, 127
Response.Buffer property and, 106
Stream object, 207
Folder object, 303, 360-361
FolderExists method (FileSystemObject), 359
folders, 360-361
attributes of, 364-366
copying, 372-374
creating new, 374
date created, 367
deleting, 374
determining if root, 369
moving, 378
names of, 376
parent folders, 371
Folders collection (Folder), 361
For Each construct
iterating Contents collection, 35
Form collection (Request), 75, 87-92
form submissions, 72
<FORM> tags, 72
ACTION attribute, 90
format
message data (CDO), 310, 316
physical drives, 368
forms, 87-92
converting from CGI to ASP, 428-439
For...Next construct
iterating Contents collection, 35
frames for advertising graphics, 279
FreeSpace property (Drive), 356
From property (NewMail), 306, 314
functions, ASP, 19-22 #LINK<G[ Top ]>#
GATEWAY_INTERFACE element (ServerVariables), 98, 439
GATEWAY_INTERFACE environment variable, 435
Get method, Counters component, 350
GET request type, 71-72
retrieving data sent with, 92-95
sending to ASP scripts, 74
GetAbsolutePathName method (FileSystemObject), 359
GetAdvertisement method (Ad Rotator), 273, 280
GetAllContent method (Content Rotator), 346
GetBaseName method (FileSystemObject), 359, 375
GetChildren method (Record), 201
GetChunk method (Field), 199
GetDefaultFolder method (Session), 308
GetDrive method (FileSystemObject), 359
GetDriveName method (FileSystemObject), 359
GetExtensionName method (FileSystemObject), 359
GetFile method (FileSystemObject), 359
GetFileName method (FileSystemObject), 359
GetFirst method, Messages collection, 305
GetFolder method (FileSystemObject), 359
GetFolderName method (FileSystemObject), 376
GetLast method, Messages collection, 305
GetLastError method
ASPError object, 45
Server object, 138-140
GetListCount method (NextLink), 329
GetListIndex method (NextLink), 330
GetNext method, Messages collection, 305
GetNextDescription method (NextLink), 331
GetNextURL method (NextLink), 332
GetNthDescription method (NextLink), 333
GetNthURL method (NextLink), 334
GetParentFolderName method (FileSystemObject), 359
GetPrevious method, Messages collection, 305
GetPreviousDescription method (NextLink), 335
GetPreviousURL method (NextLink), 336
GetRows method (Recordset), 205
GetSpecialFolder method (FileSystemObject), 360, 377
GetString method (Recordset), 205
GetTempName method (FileSystemObject), 360
global variables, 10, 30-32
transactional objects and, 63, 163
GLOBAL.ASA file, 30-32, 177-184
Application object events and scope, 178-180
counter variables in, 348-353
Session object events and scope, 180-182
type library declarations, 182-184
graphics, advertising (see Ad Rotator)
Guestbook property (MyInfo), 402 #LINK<H[ Top ]>#
Halcyon Software, 441
HasAccess method (Permission Checker), 412
HasKeys attribute, Cookies collection (Response), 118
HasKeys property, Cookies collection (Request), 85
headers, adding to messages (CDO), 318
headers, HTTP, 72
custom, adding to responses, 121
PICS system for, 114-115
requests, 69, 73
responses, 69, 73, 103
ServerVariables elements for, 96-98
User-Agent header, interpreting, 285-292
HelpContext property (Error), 197
HelpFile property (Error), 197
hit count data file, 406
hit counters, 406-409
Hits method (Page Counter), 408
HomeOccupation property (MyInfo), 402
HomePhone property (MyInfo), 402
HomeWords property (MyInfo), 402
HTML (Hypertext Markup Language), 12
CDO messages in, 310
encoding for browser display, 140
frames for advertising graphics, 279
rotating content, 342-347
<HTML> tags, server-side functions in, 21
HTMLEncode method (Server), 140
HTMLText property (Message), 304
HTTP Headers tab (MMC), 448
HTTP (Hypertext Transfer Protocol), 67-75, 129-130
cookies, 81-87
example of, 67-71
form submissions, 72
headers
custom, adding to responses, 121
User-Agent header, interpreting, 285-292
request headers, 69, 73
request types, 71
requests, 10, 76-102
reading bytes from, 101-102
redirecting, 128
Request object and, 74-75
size of request body, 77
(see also Request object)
response headers, 69, 73
responses, 11, 103-130
buffering, 105-107, 125, 127-128
character sets for, 109
headers, 103
writing, 124-125
ServerVariables elements for headers, 96-98
status codes, 115
HTTP_ . . . elements (ServerVariables), 98
HTTP_ACCEPT environment variable, 435, 437
HTTP_COOKIE environment variable, 436
HTTP_FROM environment variable, 436, 438
HTTP_QUERYSTRING parameter, 94
HTTP_REFERER environment variable, 436, 438
HTTPS element (ServerVariables), 98
HTTPS_KEYSIZE element (ServerVariables), 99
HTTPS_SECRETKEYSIZE element (ServerVariables), 99
HTTPS_SERVER_ISSUER element (ServerVariables), 99
HTTPS_SERVER_SUBJECT element (ServerVariables), 99
HTTP_USER-AGENT environment variable, 436
HTTP_USER_AGENT environment variable, 436 #LINK<I[ Top ]>#
IIS (Internet Information Server), 4
configuring ASP on, 445-450
errors and, 45
IIS metabase, 96, 99, 446-450
images, advertising (see Ad Rotator)
immediate-update mode, 243
deleting recordsets, 249
Importance property
Message object, 304
NewMail object, 306, 315
Inbox folder, 303
adding messages to, 305
InBox property (Session), 308
.INC file extension, 173
#include directive, 173-177
Increment method (Counters), 352
Index property (Recordset), 203
InfoMessage object event (Connection), 196
initializing
Application object, 29
application-level variables, 34
initiating user sessions, 147
<INPUT> tags
NAME= attribute, 72
inserting files into scripts/content, 173-177
INSTANCE_ID element (ServerVariables), 99
INSTANCE_META_PATH element (ServerVariables), 99
Instant ASP (I-ASP), 441
instantiating
Ad Rotator component, 277
ADO, 190
Browser Capabilities component, 290
Collaboration Data Objects, 297
Content Linking component, 327
Content Rotator component, 345
Counter component, 349
FileSystemObject object, 354
Logging Utility component, 384
Page Counter component, 407
Permission Checker component, 411
Tools component, 384, 415
Internet Information Server (see IIS)
Internet Server API (ISAPI), 5-6
Internet, static content on, 3
IP address
server accepting requests, 99
server making requests, 100
ISAPI DLL, metabase-specific path for, 96
ISAPI filters, 5
ISAPI technology, 5-6
IsClientConnected property (Response), 113
IsolationLevel property (Connection), 195
IsReady property (Drive), 356, 369
IsRootFolder property (Folder), 360, 369
issuer, certificate (see digital certificates)
Issuer value (Key property), 79
Item property
Attachments collection, 303
ClientCertificate collection, 78
Contents collection, 32, 153
Cookie collection (Request), 84
Cookies collection (Response), 117
Drives collection, 357
Files collection, 358
Folders collection, 361
Form collection, 87
Messages collection, 305
QueryString collection, 92
Recipients collection, 307
ServerVariables collection, 95
StaticObjects collection
Application object, 39
Session object, 161
ITU Recommendation X.509, 78, 81 #LINK<J[ Top ]>#
Java, ASP for, 441
JavaScript language, 12-14, 22 #LINK<K[ Top ]>#
Keep-Alive header, buffering response content, 106
Key property
ClientCertificate collection, 78
Contents collection, 34, 155
Cookies collection
Request object, 84
Response object, 117
Form collection, 87
QueryString collection, 92
ServerVariables collection, 95
StaticObjects collection
Application object, 39
Session object, 161 #LINK<L[ Top ]>#
LANGUAGE attribute (<SCRIPT>), 14
LANGUAGE directive, 170
@LANGUAGE preprocessor, 22
LCID directive, 171
LCID property (Session), 150-151, 172
library packages, custom, 63
line feed, writing, 130
Line property
ASPError object, 53
TextStream object, 362
LineSeparator property (Stream), 207
LiveScript language, 12-14
lngIOMode method (Logging Utility), 393
LoadFromFile method (Stream), 207
LOCAL_ADDR element (ServerVariables), 99
locale, 150-151
of message sender, 324
setting identifier for, 171
Lock method (Application), 41-42
locking/unlocking, Application object, 41-42
LockType property (Recordset), 203
log files, reading and closing, 386
logging
web site activity, 122
when sessions start/end, 165, 167
Logging Utility component, 384-397
example, 396
instantiating, 384
methods reference, 392-396
properties reference, 386-392
Logoff method (Session), 308
LogonSMTP method (Session), 308
LOGON_USER element (Request), 149
LOGON_USER element (ServerVariables), 99
LOGON_USER environment variable, 436, 437
logscrpt.dll, 384 #LINK<M[ Top ]>#
Macintosh character sets, 110
Macintosh web servers, 417
MailFormat property (NewMail), 306, 316
Management Console (MMC), 445-450
MapPath method (Server), 141, 166
MarshalOptions property (Recordset), 203
MaxRecords property (Recordset), 203
memory
Recordset and Connection objects (ADO), 202
user sessions
releasing, 37, 38, 163-164
Timeout property and, 153
Message object, 303
MessageFormat property
Message object, 304
Session object, 308
Messages collection (Folder), 303, 305
Messages property
Folder object, 303
MyInfo component, 402
messaging with CDO
attachments to messages, 301-303, 320-322
carbon copies, 308, 311
custom headers, 318
generating messages from applications, 305-307
message actions (reference), 320-324
message properties (reference), 308-320
Inbox and Outbox folders, 303
message data, 303, 309
message data format, 310, 316
priority of messages, 315
recipient information, 307, 318
sender information, 301, 314, 324
sending messages, 322
subject of messages, 317
URLs
as attachments, 321-322
referenced in messages, 312-314
metabase, IIS, 96, 99, 446-450
METHOD attribute (<FORM>), 72
Method property (Logging Utility), 388
methods of ADO objects, reference for, 241-272
Microsoft Data Access Components SDK, 187
Microsoft Transaction Server, 61
(see also ObjectContext object)
MIME type, 98
MMC (Management Console), 445-450
Mode property
Connection object, 195
Record object, 200
Stream object, 207
Move method
File object, 358
Folder object, 361
Recordset object, 205, 254-256
MoveFile method (FileSystemObject), 360
MoveFirst method (Recordset), 205, 256-258
MoveFolder method (FileSystemObject), 360, 378
MoveLast method (Recordset), 205, 256-258
MoveNext method (Recordset), 205, 256-258
MovePrevious method (Recordset), 205, 256-258
MoveRecord method (Record), 201
moving
files and folders, 378
record pointer in recordsets, 254-258
msado15.dll file, 190
MS-DOS relative directory notation, 142
MTS (Microsoft Transaction Server), 61
(see also ObjectContext object)
MyInfo component, 398-405
properties reference, 402-405
myinfo.dll library, 398
myinfo.xml library, 398 #LINK<N[ Top ]>#
NAME= attribute (<INPUT>), 72
Name property, 232-234
CDO objects
AddressEntry object, 301
Attachment object, 302
Folder object, 303
Session object, 308
Connection object, 193
Field object, 198
File object, 357
Folder object, 360
Parameter object, 199
Property object, 200
Recipient object, 307
names
ADO objects, 232-234
files and folders, 375-377
NativeError property (Error), 197
NewMail object, 300, 305-307
methods reference, 320-324
properties reference, 308-320
NextLink object, 325-341
example, 337-341
instantiating, 327
methods reference, 329-337
Nextlink.DLL library, 326
NextRecordset method (Recordset), 205, 258-259
Number property
ASPError object, 54
Error object, 234-235
Number property (Error), 197
NumericScale property
Field object, 198
Parameter object, 199 #LINK<O[ Top ]>#
object model file system, 355-362
<OBJECT> tags
application-level objects added with, 39
session-level objects added with, 161-163
ObjectContext object, 10, 61-66
application-level scope and, 36
method and event reference, 63-66
object scope and, 63, 163
objects
ADO object model, 192-208
ASP object model, 9-11
CDO object model, 299-308
creating with page-level scope, 134
instantiating, 134, 421
scope (see scope)
OLE DB, 187
OnEnd event
Application object, 10, 42
Session object, 164-166
OnStart event
Application object, 10, 43
locking/unlocking Application object, 42
calling CreateObject in, 134
GLOBAL.ASA file, 177-184
Session object, 166-167
OnTransactionAbort event (ObjectContext), 62, 65
OnTransactionCommit event (ObjectContext), 62, 66
Open method
Connection object, 196, 260
Record object, 201
Recordset object, 206, 261-264
Stream object, 207
Open Source ASP environment, 442-444
OpenASP, 442-444
OpenAsTextStream method (File), 358, 379-380
opening
database server connections, 260
recordsets, 261-264
text files, 379-380
OpenLogFile method (Logging Utility), 393
OpenSchema method (Connection), 196
OpenTextFile method (FileSystemObject), 360
OrganizationAddress property (MyInfo), 403
OrganizationName property (MyInfo), 403
OrganizationPhone property (MyInfo), 403
OrganizationWords property (MyInfo), 403
OriginalValue property (Field), 198
Outbox folder, 303
OutBox property (Session), 308
Owner method (Tools), 416 #LINK<P[ Top ]>#
Page Counter component, 406-409
instantiating, 407
methods reference, 408-409
pagecnt.dll library, 406
PageCount property (Recordset), 203
page-level scope, creating objects with, 134
PageSize property (Recordset), 203
PageType property (MyInfo), 403
Parameter object (ADO), 199
Parameters collection (Connection), 193
parameters, database commands, 199
Parent property (CDO), 300
ParentFolder object (Folder), 371
ParentFolder property
File object, 357
Folder object, 360
ParentURL property (Record), 200
password for authentication, 97
path attribute (Set-Cookie header), 83
Path property
Cookies collection (Response), 119
Drive object, 356
File object, 357
Folder object, 360
PATH_INFO element (ServerVariables), 99, 142
PATH_INFO environment variable, 436
paths
determining for web pages, 99
determining with MapPath( ), 141
PATH_TRANSLATED element (ServerVariables), 99
PATH_TRANSLATED environment variable, 436
performance, ISAPI vs. CGI applications, 5
Perl CGI script, 430
permchk.dll library, 411
Permission Checker component, 410-413
PersonalAddress property (MyInfo), 403
PersonalMail property (MyInfo), 403
PersonalName property (MyInfo), 403
PersonalPhone property (MyInfo), 403
PersonalWords property (MyInfo), 403
physical drives, 355-357
disk space remaining, 366
format type, 368
for particular file system objects, 367
PICS property (Response), 114-115
PICS rating system, 114-115
"please wait" pages, 107
PluginExists method (Tools), 417
pooling library packages, 63
port, web server, 100
position
in Content Linking list, 330
in recordset, 208-210
Position property (Stream), 207
POST request type, 71-72
sending to ASP scripts, 75
Precision property
Field object, 198
Parameter object, 199
Prepared property (Connection), 193
preprocessing directives, 168-172
priority, message, 315
ProcessForm method (Tools), 417-420
Properties collection
Connection object, 193, 195
Field object, 198
Parameter object, 199
Record object, 201
Recordset object, 204
Properties dialog (MMC), 447
properties of ADO objects
Property object for, 200
reference for, 208-240
Property object (ADO), 200
PropertyName property (Browser Capabilities), 291
ProtocolStatus property (Logging Utility), 388
ProtocolVersion property (Logging Utility), 389
Provider property (Connection), 195
proxy servers, caching web pages and, 107 #LINK<Q[ Top ]>#
queries (see database commands)
query strings, encoding, 144
QueryString collection (Request), 75, 92-95, 99
accessing data with ServerVariables, 94
length limit, 94
QUERY_STRING element (ServerVariables), 99, 438
QUERY_STRING environment variable, 436
QueryString parameter, adding with Execute method (Server), 138
quotation marks, writing, 130 #LINK<R[ Top ]>#
Random method (Tools), 420
rating web pages, 114-115
RDS (Remote Data Services), 188
Read method
Stream object, 207
TextStream object, 362, 380
ReadAll method (TextStream), 362
ReadFilter method (Logging Utility), 395
ReadFromFile method (Attachment), 302
reading
from HTTP requests, 101-102
text files, 380
ReadLine method (TextStream), 362, 380
ReadLogRecord method (Logging Utility), 395
ReadText method (Stream), 207
reason phrase, 74
recipient information (CDO), 307, 318
Recipient object, 307
Recipients collection (Message), 304, 307
Recipients property (Message), 304
Record object (ADO), 189, 200
record source, 239
RecordCount property (Recordset), 204, 236-237
records
creating new, 241-244
deleting all, 247-250
fields, 197
refreshing, 265-267
moving pointer within recordset, 254-258
resulting from queries
based on recordset position, 208-210
counting in recordset, 236-237
retrieving new recordset, 258-259
viewing subset of recordset, 228-231
saving changes, 270-272
Recordset object (ADO), 202-208
recordsets, 202-208
closing, 246
counting records in, 236-237
cursor type for creating, retrieving, 222-224
deleting, 247-250
determining if at end, 212-213, 226-228
duplicating, 244-246
feature support testing, 267-270
moving pointer within, 254-258
opening, 261-264
refreshing all record fields, 265-267
retrieving next, 258-259
returning records based on position, 208-210
saving changes, 270-272
source of records in, 239
update modes, 243
viewing record subset, 228-231
RecordType property (Record), 201
Redirect method (Response), 128
redirecting requests, 128
redirection file (Ad Rotator), 274, 283
reexecuting database queries, 264
Referer property (Logging Utility), 389
refreshing record fields, 265-267
relative directory notation, 142
Remote Data Services (RDS), 188
REMOTE_ADDR environment variable, 436, 439
REMOTE_ATTR element (ServerVariables), 100
REMOTE_HOST element (ServerVariables), 100
REMOTE_HOST environment variable, 436, 439
REMOTE_IDENT environment variable, 436
REMOTE_USER environment variable, 436
Remove method
Contents collection, 35, 37, 38
Counters component, 353
RemoveAll, Contents collection, 38
RemoveAll method, Contents collection, 156-161
Requery method (Recordset), 206, 264
Request object, 10, 76-102
BinaryRead method, 101-102
collections reference, 78-101
HTTP requests and, 74-75
TotalBytes property, 77
request types, 71
request-line, 73
REQUEST_METHOD element (ServerVariables), 100
REQUEST_METHOD environment variable, 436, 439
requests, HTTP, 10, 76-102
headers, 69, 73
reading bytes from, 101-102
redirecting, 128
Request object and, 74-75
size of request body, 77
Reset method (Page Counter), 409
Response object, 11, 103-130
clearing contents, 125
Cookies collection, 117-121
methods reference, 121-130
properties reference, 105-116
responses, HTTP, 11, 103-130
buffering, 105-107, 125
sending buffer remains, 127-128
characters sets for, 109
headers, 69, 73, 103
custom, 121
writing, 124-125, 129-130
Resync method (Recordset), 206, 265-267
RollbackTrans method (Connection), 196
RollbackTransComplete object event (Connection), 196
root folder, 369
RootFolder property (Drive), 356
rotating advertisements (see Ad Rotator component)
rotating HTML content, 342-347
rotator schedule file (Ad Rotator), 275-276, 282
RUNAT attribute (<SCRIPT>), 19 #LINK<S[ Top ]>#
SafeArray variant, 101
Save method (Recordset), 206
SaveToFile method (Stream), 207
saving recordset changes, 270-272
SchoolAddress property (MyInfo), 403
SchoolDepartment property (MyInfo), 403
SchoolName property (MyInfo), 403
SchoolPhone property (MyInfo), 403
SchoolWords property (MyInfo), 403
scope
application-level, 10, 30-32, 39
creating objects with CreateObject, 134
session-level, 147-149, 161-163
site-level counter variables, 348-353
transactional objects, 63, 163
user-specific information, 147
SCOPE parameter, 134
<SCRIPT> tags, 13-14
scripting languages, 12-14, 22
setting default for processing, 170
SCRIPT_NAME element (ServerVariables), 100
SCRIPT_NAME environment variable, 436, 437, 438
ScriptTimeout property (Server), 132
Scrrun.DLL library, 354
secure attribute (Set-Cookie header), 83
Secure property, Cookies collection (Response), 119
security
cookie information, 83, 119
identifying secure ports, 100
Permission Checker component, 410-413
Seek method (Recordset), 206
Send method
Message object, 304
NewMail object, 307, 322
sender information (CDO), 301, 314, 324
Sender property (Message), 304
sending messages (CDO), 322
SerialNumber property (Drive), 356
SerialNumber value (Key property), 79
server components (list), 24
Server object, 11, 131-145
methods reference, 133-145
ScriptTimeout property, 132
ServerIP property (Logging Utility), 389
SERVER_NAME element (ServerVariables), 100
SERVER_NAME environment variable, 436, 439
ServerName property (Logging Utility), 390
SERVER_PORT element (ServerVariables), 100
SERVER_PORT environment variable, 437, 439
ServerPort property (Logging Utility), 390
SERVER_PORT_SECURE element (ServerVariables), 100
SERVER_PROTOCOL element (ServerVariables), 100
SERVER_PROTOCOL environment variable, 437, 439
servers, database (see ADO; database servers)
servers (see web servers)
server-side functions, 19-22
server-side includes, 173-177
server-side scripting, 14-19
SERVER_SOFTWARE element (ServerVariables), 100
SERVER_SOFTWARE environment variable, 437, 439
ServerVariables collection (Request), 10, 95-101
accessing QueryString collection data, 94
ServiceName property (Logging Utility), 390
Session object, 11, 146-167
Abandon method, 163-164
CDO objects, 308
collections reference, 153-163
OnStart and OnEnd events, 164-167
GLOBAL.ASA file for, 177, 180-182
properties reference, 149-153
Session property (CDO), 300, 301
SessionID property (Session), 147, 151-152
session-level scope, 147-149
corresponding type libraries, 182
creating objects with, 134
objects added with <OBJECT>, 161-163
transactional objects and, 63, 163
user-specific information, 147
sessions (see user sessions)
Set method, Counters component, 353
SetAbort method (ObjectContext), 62, 63
SetComplete method (ObjectContext), 62, 64
Set-Cookie header, 82, 117, 121
SetEOS method (Stream), 207
SetLocaleIDs method
NewMail object, 307, 324
Session object, 308
ShareName property (Drive), 356
ShortName property
File object, 357
Folder object, 360
ShortPath property
File object, 357
Folder object, 360
size
HTTP request body, 77
HTTP requests, 98
QueryString collection length limit, 94
Size property
File object, 358
Folder object, 360
Message object, 304
Parameter object, 199
Stream object, 207
Skip method (TextStream), 362
SkipLine method
Stream object, 208
TextStream object, 362
Sort property (Recordset), 204
Source property
ASPError object, 55
Attachment object (CDO), 302
Error object, 197, 238
Record object, 201
Recordset object, 204, 239
SQL statements (see database commands)
SQLState property (Error), 197
SSI (server-side includes), 173-177
State property
Connection object, 193, 195
Record object, 201
Recordset object, 204
Stream object,