| Acknowledgments |
|
xi | |
| Introduction |
|
xiii | |
| PART 1 The Basics of ASP Programming |
|
|
Active Server Pages---Getting Set Up |
|
|
3 | (34) |
|
Why Active Server Pages (ASP)? |
|
|
4 | (9) |
|
Windows 2000 Advanced Server Edition |
|
|
5 | (6) |
|
Project 1-1: Install and Configure IIS 5.0 |
|
|
11 | (2) |
|
The Development Environment |
|
|
13 | (4) |
|
|
|
13 | (1) |
|
|
|
14 | (3) |
|
Active Server Pages: An Overview |
|
|
17 | (8) |
|
|
|
18 | (1) |
|
|
|
19 | (1) |
|
|
|
19 | (1) |
|
Relational Databases and Other Data Sources |
|
|
20 | (1) |
|
Developing Online Applications |
|
|
21 | (1) |
|
Client/Server or Tiered Applications |
|
|
21 | (1) |
|
|
|
22 | (3) |
|
The Web Site as Communications Channel |
|
|
25 | (12) |
|
|
|
25 | (8) |
|
Project 1-2: Design a Web Site Application |
|
|
33 | (1) |
|
|
|
34 | (3) |
|
ASP and the Web---Programming Basics |
|
|
37 | (46) |
|
Web Site Coding Languages |
|
|
38 | (29) |
|
|
|
39 | (8) |
|
|
|
47 | (14) |
|
|
|
61 | (5) |
|
Project 2-1: Design the Structure for a Web Site Application |
|
|
66 | (1) |
|
|
|
67 | (16) |
|
What's Wrong with My Code? |
|
|
67 | (6) |
|
|
|
73 | (4) |
|
Project 2-2: Create a Simple ASP Application |
|
|
77 | (3) |
|
|
|
80 | (3) |
|
The Request and Response Objects |
|
|
83 | (42) |
|
Creating Web Site Interactivity |
|
|
84 | (1) |
|
|
|
84 | (25) |
|
|
|
85 | (2) |
|
Accessing Values from Forms or URLs |
|
|
87 | (1) |
|
Project 3-1: Create a Quick HTML Form Page and Response |
|
|
87 | (10) |
|
The Server Variable Collection |
|
|
97 | (5) |
|
|
|
102 | (1) |
|
The ClientCertificate Collection |
|
|
103 | (2) |
|
Project 3-2: Using the Request Object |
|
|
105 | (4) |
|
|
|
109 | (5) |
|
Response Object Collections |
|
|
110 | (1) |
|
Response Object Properties |
|
|
110 | (1) |
|
|
|
111 | (1) |
|
Writing Data to the Browser |
|
|
112 | (2) |
|
Writing Data with the Binary Write Method |
|
|
114 | (11) |
|
|
|
115 | (1) |
|
|
|
116 | (5) |
|
Project 3-3: Using the Response Object |
|
|
121 | (2) |
|
|
|
123 | (2) |
|
|
|
125 | (38) |
|
|
|
126 | (37) |
|
ASP Page and Object Context |
|
|
126 | (1) |
|
|
|
127 | (9) |
|
|
|
136 | (8) |
|
|
|
144 | (8) |
|
Project 4-1: Using SSI, the Server Object, and Errors |
|
|
152 | (8) |
|
|
|
160 | (3) |
|
The Application and Session Objects |
|
|
163 | (38) |
|
|
|
164 | (37) |
|
Maintaining State with Cookies |
|
|
165 | (1) |
|
|
|
166 | (1) |
|
Default and Virtual ASP Applications |
|
|
166 | (1) |
|
|
|
167 | (1) |
|
|
|
168 | (6) |
|
Project 5-1: Using The Application Object |
|
|
174 | (4) |
|
|
|
178 | (2) |
|
|
|
180 | (5) |
|
Project 5-2: Using the Session Object in an Application |
|
|
185 | (11) |
|
|
|
196 | (5) |
| PART 2 Active Server Components and ADO |
|
|
The Scripting Object Model and SOM Objects |
|
|
201 | (48) |
|
The Scripting Object Model |
|
|
202 | (47) |
|
|
|
203 | (1) |
|
|
|
204 | (7) |
|
The Scripting.FileSystemObject Object |
|
|
211 | (4) |
|
|
|
215 | (3) |
|
|
|
218 | (10) |
|
|
|
228 | (5) |
|
The Scripting.TextStream Object |
|
|
233 | (5) |
|
Project 6-1: Pulling Together These Examples |
|
|
238 | (9) |
|
|
|
247 | (2) |
|
Major Active Server Components |
|
|
249 | (28) |
|
|
|
250 | (27) |
|
Creating Server Components with ASP |
|
|
251 | (1) |
|
|
|
252 | (3) |
|
Project 7-1: An Example of Rotating Ads |
|
|
255 | (3) |
|
The Browser Capabilities Component |
|
|
258 | (3) |
|
The Content Linking Component |
|
|
261 | (2) |
|
Project 7-2: Using the Content Linking Component |
|
|
263 | (3) |
|
The Content Rotator Component |
|
|
266 | (3) |
|
Project 7-3: Beginning Your Web Site Application |
|
|
269 | (6) |
|
|
|
275 | (2) |
|
More Active Server Components |
|
|
277 | (42) |
|
More Active Server Components |
|
|
278 | (41) |
|
More Microsoft IIS Server Components |
|
|
278 | (1) |
|
|
|
279 | (1) |
|
Project 8-1: Using the Counters Component |
|
|
280 | (3) |
|
The Page Counter Component |
|
|
283 | (2) |
|
The Permission Checker Component |
|
|
285 | (13) |
|
|
|
298 | (4) |
|
The Logging Utility Component |
|
|
302 | (6) |
|
Third-Party Components for ASP |
|
|
308 | (3) |
|
Project 8-2: Using These ASP Components |
|
|
311 | (5) |
|
|
|
316 | (3) |
|
ActiveX Data Objects and SQL Overview |
|
|
319 | (34) |
|
Using Databases in ASP Applications |
|
|
320 | (12) |
|
|
|
321 | (2) |
|
|
|
323 | (4) |
|
Building Microsoft Access Tables |
|
|
327 | (5) |
|
|
|
332 | (4) |
|
Data Consumers and Data Providers |
|
|
333 | (1) |
|
|
|
334 | (2) |
|
Coding Structured Query Language (SQL) |
|
|
336 | (17) |
|
|
|
336 | (1) |
|
|
|
337 | (10) |
|
|
|
347 | (1) |
|
|
|
348 | (3) |
|
|
|
351 | (2) |
|
The ADO Connection-Related Objects |
|
|
353 | (30) |
|
Interactivity and Latency |
|
|
354 | (29) |
|
Optimizing Database Interactions |
|
|
354 | (1) |
|
|
|
355 | (8) |
|
Advanced Error-Handling Techniques |
|
|
363 | (2) |
|
Project 10-1: Using The Connection Object |
|
|
365 | (2) |
|
|
|
367 | (3) |
|
|
|
370 | (2) |
|
|
|
372 | (1) |
|
|
|
373 | (4) |
|
The Parameters Collection |
|
|
377 | (2) |
|
Project 10-2: Using the Command Object |
|
|
379 | (2) |
|
|
|
381 | (2) |
|
The ADO Recordset-Related Objects |
|
|
383 | (32) |
|
|
|
384 | (21) |
|
Recordset Methods and Properties |
|
|
384 | (4) |
|
Recordset Navigation and Manipulation Operations |
|
|
388 | (4) |
|
Project 11-1: Building a Data Management Page |
|
|
392 | (13) |
|
The Stream and Record Objects |
|
|
405 | (10) |
|
Record Object Properties and Methods |
|
|
406 | (1) |
|
Stream Object Properties and Methods |
|
|
407 | (2) |
|
Record and Stream Object Overview |
|
|
409 | (1) |
|
|
|
410 | (5) |
| PART 3 Client/Server Applications |
|
|
|
|
415 | (22) |
|
Transactions and Transaction-Based Data Processing |
|
|
416 | (21) |
|
Consistency and the ACID Test |
|
|
416 | (2) |
|
|
|
418 | (4) |
|
|
|
422 | (1) |
|
Project 12-1: ASP Transactions on SQL Server |
|
|
422 | (12) |
|
|
|
434 | (3) |
|
ASP Collaboration and Security |
|
|
437 | (68) |
|
Collaborative Technologies and CDONTS |
|
|
438 | (7) |
|
|
|
438 | (3) |
|
Project 13-1: An E-Mail Sending Web Page |
|
|
441 | (4) |
|
|
|
445 | (22) |
|
|
|
446 | (1) |
|
Software, Applications, and Networking Security |
|
|
447 | (3) |
|
Project 13-2: Building a User Log-In Application |
|
|
450 | (12) |
|
|
|
462 | (5) |
| PART 4 Appendixes |
|
|
A Answers to Mastery Checks |
|
|
467 | (10) |
|
Module 1: Active Server Pages---Getting Set Up |
|
|
468 | (1) |
|
Module 2: ASP and the Web---Programming Basics |
|
|
468 | (1) |
|
Module 3: The Request and Response Objects |
|
|
469 | (1) |
|
Module 4: The Server Object |
|
|
470 | (1) |
|
Module 5: The Application and Session Objects |
|
|
470 | (1) |
|
Module 6: The Scripting Object Model and SOM Objects |
|
|
471 | (1) |
|
Module 7: Major Active Server Components |
|
|
472 | (1) |
|
Module 8: More Active Server Components |
|
|
473 | (1) |
|
Module 9: ActiveX Data Objects and SQL Overview |
|
|
474 | (1) |
|
Module 10: The ADO Connection-Related Objects |
|
|
474 | (1) |
|
Module 11: The ADO Recordset-Related Object |
|
|
475 | (1) |
|
Module 12: ASP Transactions |
|
|
475 | (1) |
|
Module 13: ASP Collaboration and Security |
|
|
476 | (1) |
|
|
|
477 | (4) |
|
|
|
481 | (14) |
|
|
|
495 | (10) |
| Glossary |
|
505 | (8) |
| Index |
|
513 | |