Title:
Professional active server pages 2.0
Publication Information:
Birmingham, Eng. : Wrox Press, 1998
ISBN:
9781861001269
Added Author:
Available:*
Library | Item Barcode | Call Number | Material Type | Item Category 1 | Status |
---|---|---|---|---|---|
Searching... | 30000005171180 | TK5105.8885 A25 P76 1998 | Open Access Book | Book | Searching... |
On Order
Summary
Summary
This title covers ASP 2.0, looking at the Microsoft technology which allows the reader to build secure commercial applications for use over the Internet. A knowledge of Javascript or VBScript is assumed.
Author Notes
Russian computer expert Alex Fedorov is an executive editor for ComputerPress magazine.
He has written books and more than 150 articles on such topics as Delphi programming, Internet programming, ASP, and COM/OLE.
(Bowker Author Biography)
Table of Contents
An Introduction to Active Server Pages | p. 1 |
Chapter 1 Getting Started With ASP | p. 7 |
What is ASP? And Why is it Better than HTML? | p. 8 |
Shortcomings of HTML | p. 8 |
ASP and HTML | p. 11 |
Can ASP Pages be Viewed on Netscape or Internet Explorer? | p. 12 |
The Web--The Next Generation | p. 12 |
Static Publishing | p. 13 |
CGI | p. 13 |
Active Web Sites | p. 13 |
Why Use ASP? | p. 15 |
What do I Need to Run ASP? | p. 16 |
Which Web Server do I Choose? | p. 16 |
Installing Personal Web Server 4.0 | p. 18 |
Finding your Way Around Personal Web Server | p. 20 |
Getting ASP Up and Running | p. 26 |
Checking it's all Working Fine | p. 26 |
Common Errors and Pitfalls with ASP | p. 29 |
Creating and Editing ASP Scripts | p. 31 |
Viewing ASPs | p. 34 |
So, What is ASP, Again? | p. 35 |
Active Server Objects | p. 36 |
Active Server Components | p. 36 |
Active Server Pages Scripting Objects | p. 37 |
Summary | p. 37 |
Chapter 2 Client-Side Scripting and Server-Side Scripting | p. 39 |
Client/Server Architecture: What's the Fuss? | p. 40 |
In the Bad Old Days | p. 41 |
Separating the Tasks | p. 41 |
Web Client/Server Architectures | p. 43 |
Scripting Languages | p. 43 |
Client-Side or Server-Side Scripts? | p. 44 |
Client-Side Scripts | p. 44 |
Server-Side Scripts | p. 53 |
How Does ASP Work? | p. 56 |
Summary | p. 61 |
Chapter 3 Basic ASP Techniques | p. 63 |
Getting Information From the User | p. 63 |
Using Forms to Obtain Information from the User | p. 64 |
Holding Information Obtained From the User | p. 74 |
Output to the User | p. 76 |
Exercises Utilizing these Basic ASP Techniques | p. 85 |
Summary | p. 95 |
Chapter 4 Variables | p. 97 |
What is a Variable? | p. 98 |
Naming Variables | p. 98 |
Data Types in VBScript, or One Type For All | p. 99 |
Determining Subtypes with TypeName() | p. 102 |
Arithmetic and Comparison Operators | p. 104 |
Assignment Operator | p. 105 |
Comparison Operators | p. 105 |
Logical Operators | p. 106 |
Arithmetic Calculations | p. 106 |
Concatenating Variants | p. 107 |
Declaring Variants | p. 107 |
Using Option Explicit | p. 108 |
Conversions | p. 111 |
Naming Conventions | p. 114 |
Constants | p. 115 |
VBScript Constants | p. 115 |
String Manipulation | p. 115 |
Returning the Length of a String | p. 116 |
Pruning the Beginning or End of a String | p. 116 |
Removing the Middle of a String | p. 117 |
Finding a Particular Word | p. 117 |
Giving it a Quick Trim | p. 118 |
Variable Scope | p. 122 |
Local Variables | p. 122 |
Global Variables | p. 124 |
Arrays | p. 127 |
Declaring Arrays | p. 128 |
Multi-Dimensional Arrays | p. 131 |
Summary | p. 132 |
Chapter 5 ASP Control Constructs | p. 135 |
An Example in Plain English | p. 135 |
There are Two Kinds of ASP Statements | p. 136 |
Definitions | p. 137 |
Types of Control Statements | p. 137 |
Branching Structures | p. 138 |
Looping Controls | p. 138 |
Jumping Controls | p. 138 |
Examples of Control Structures | p. 139 |
Branching Statements | p. 140 |
If...Then Control Structure | p. 140 |
Select Case | p. 146 |
Looping Controls | p. 150 |
Jumping Structures and the Art of Reusing Code | p. 161 |
Procedures | p. 162 |
Functions | p. 167 |
Summary of Reusing Code | p. 172 |
Summary | p. 173 |
Chapter 6 Objects, Properties, Methods and Events | p. 175 |
What is an Object? | p. 176 |
Our Telephone in Detail | p. 176 |
Object Terms | p. 177 |
Programming with Objects | p. 183 |
The Telephone Object | p. 184 |
Altering the Properties of an Object | p. 185 |
Calling Methods of an Object | p. 189 |
What is the Active Server Pages Object Model? | p. 193 |
Object Model Structure | p. 194 |
Using the Object Model as a Road Map | p. 198 |
Summary | p. 199 |
Chapter 7 The Request Object | p. 201 |
The Request Object | p. 201 |
Request Object Collections | p. 202 |
The QueryString Collection | p. 202 |
The Form Collection | p. 210 |
The Server Variables Collection | p. 215 |
The Cookies Collection | p. 225 |
The ClientCertificate Collection | p. 227 |
Properties and Methods of the Request Object | p. 230 |
The TotalBytes Property | p. 230 |
The BinaryRead Method | p. 230 |
Summary | p. 230 |
Chapter 8 The Response Object | p. 233 |
The Response Object | p. 233 |
Sending Information back to the Client | p. 234 |
Controlling How Information is Returned | p. 237 |
Controlling What the Browser Does | p. 242 |
Other Information to Send | p. 248 |
Using the Request and Response Object | p. 248 |
Summary | p. 257 |
Chapter 9 Applications, Sessions and Cookies | p. 259 |
A Web Application | p. 260 |
The Application Object | p. 260 |
Application Variables | p. 261 |
Application Object Collections | p. 263 |
Application Object Methods | p. 264 |
Global.asa | p. 267 |
Understanding the Structure of global.asa | p. 267 |
What is a Session? | p. 269 |
The Session Object | p. 271 |
Session Object Collections | p. 271 |
Session Object Properties | p. 272 |
Session Object Methods | p. 274 |
Sessions and global.asa | p. 278 |
Using Cookies | p. 284 |
Creating Cookies | p. 284 |
Using Keys | p. 285 |
Making your Cookie Persist | p. 285 |
Deleting a Cookie | p. 286 |
Summary | p. 292 |
Chapter 10 Active Server Pages Components | p. 295 |
The Server Object | p. 296 |
Creating an Instance of a Component Object | p. 296 |
The Ad Rotator Component | p. 298 |
The Content Linker Component | p. 302 |
Structure of the Content Linker | p. 303 |
ASP Pages that Use Content Linker to Hyperlink to the Next Page | p. 306 |
ASP Pages that Use the Content Linker to Display Descriptions | p. 311 |
Using the Content Linker and Control Structures to Display Only Appropriate Links | p. 315 |
Using the Content Linker with Home and End Hyperlinks | p. 320 |
ASP Content Linker to Generate a Table of Contents | p. 322 |
The Browser Capabilities Component | p. 326 |
Other Components | p. 330 |
Summary | p. 330 |
Chapter 11 The Scripting Objects | p. 333 |
What are Scripting Objects? | p. 333 |
The Dictionary Object | p. 334 |
The FileSystemObject Object | p. 342 |
The FileSystemObject Object and its Object Model | p. 342 |
Server-Side Includes | p. 351 |
The Text Stream Object | p. 355 |
Summary | p. 365 |
Chapter 12 Debugging ASP | p. 367 |
Arrgh! I Goofed Again! | p. 368 |
Where am I? | p. 368 |
What Am I Doing Here? | p. 369 |
The Lack of Good ASP Debuggers | p. 371 |
Debugging ASP Script | p. 371 |
Use Option Explicit | p. 372 |
Use Response. Write | p. 372 |
Use Subprocedures | p. 373 |
Use Include Files | p. 374 |
Conditional Tracing | p. 374 |
The Err Object | p. 381 |
The Script Debugger | p. 384 |
Enabling Debugging in IIS and PWS for NT Workstation | p. 384 |
The Script Debugger | p. 386 |
Starting the Debugger | p. 387 |
Using the Script Debugger | p. 388 |
Client-Side versus Server-Side Debugging | p. 393 |
Summary | p. 394 |
Chapter 13 Databases with ASP | p. 397 |
What is a Data Store? | p. 398 |
What is a Connection? | p. 398 |
What is a Data Source Name? | p. 399 |
Creating a DSN | p. 399 |
Using a Data Store | p. 404 |
The Technical Bit | p. 406 |
What is ODBC? | p. 406 |
What is OLE-DB? | p. 407 |
ActiveX Data Objects | p. 408 |
The Connection String | p. 409 |
OLE-DB versus ODBC | p. 410 |
The Connection Object | p. 411 |
Creating a Connection to a Database | p. 411 |
The Properties Collection | p. 413 |
The Connection Errors Collection | p. 416 |
Summary | p. 423 |
Chapter 14 Expanding Data Access | p. 425 |
The ADO Object Model | p. 425 |
What is a Recordset? | p. 426 |
Connect String Differences | p. 427 |
The Recordest Object | p. 427 |
What are the Recordset Types? | p. 431 |
What is Locking? | p. 432 |
ADO Constants | p. 433 |
The Recordset Object in Detail | p. 434 |
EOF and BOF | p. 437 |
Bookmarks | p. 437 |
Moving Through Records | p. 438 |
Finding Records | p. 441 |
Filtering Records | p. 445 |
The Fields Collection | p. 448 |
Arrays of Rows | p. 453 |
The Command Object | p. 456 |
The Connection Object (Reprise) | p. 461 |
Using Queries or Stored Procedures | p. 462 |
Modifying Data | p. 471 |
Combined Example | p. 476 |
Summary | p. 482 |
Chapter 15 Writing an Application | p. 485 |
WROX Classifieds | p. 485 |
Database Setup | p. 487 |
Setting up the DSN | p. 495 |
The Home Page | p. 495 |
User Registration and Login | p. 498 |
The Login Screen | p. 508 |
Adding Items for Sale | p. 514 |
Browsing Items for Sale | p. 528 |
Bidding for an Item | p. 532 |
Accepting a Bid | p. 547 |
Notifiying the Bidder | p. 555 |
Next Steps | p. 559 |
Summary | p. 560 |
Appendix A The VBScript Language | p. 563 |
Array Handling | p. 563 |
Assignments | p. 564 |
Constants | p. 564 |
Error constant | p. 564 |
System Color constants | p. 564 |
Comparison constants | p. 565 |
Date and Time constants | p. 565 |
Date Format constants | p. 565 |
File Input/Output constants | p. 566 |
String constants | p. 566 |
Tristate constants | p. 566 |
VarType constants | p. 566 |
Control Flow | p. 567 |
Functions | p. 568 |
Conversion Functions | p. 569 |
Date/Time Functions | p. 569 |
Math Functions | p. 570 |
Object Management Functions | p. 571 |
Script Engine Identification | p. 571 |
String Functions | p. 571 |
Variable Testing Functions | p. 572 |
Variable Declarations | p. 573 |
Error Handling | p. 573 |
Input/Output | p. 573 |
MsgBox | p. 573 |
InputBox | p. 575 |
Procedures | p. 576 |
Other Keywords | p. 576 |
Visual Basic Run-time Error Codes | p. 576 |
Appendix B Active Server Pages Object Model | p. 581 |
Request Object | p. 581 |
Response Object | p. 582 |
Application Object | p. 583 |
Session Object | p. 584 |
Server Object | p. 584 |
The Ad Rotator Component | p. 585 |
The Content Linking Component | p. 585 |
Appendix C Scripting Object Methods and Properties | p. 587 |
The Dictionary Object | p. 587 |
The FileSystemObject Object | p. 588 |
The TextStream Object | p. 588 |
The FileSystemObject object hierarchy | p. 589 |
Drive Object | p. 589 |
Folder Object | p. 590 |
File Object | p. 591 |
Appendix D HTTP 1.1 Error Codes | p. 593 |
Appendix E Useful References and URLs | p. 599 |
Other Useful URLs | p. 600 |
Appendix F Glossary of Terms and Acronyms | p. 603 |
Appendix G Support and Errata | p. 617 |
Wrox Developer's Membership | p. 618 |
Finding an Errata on the Web Site | p. 619 |
Adding an Errata to the Sheet Yourself | p. 621 |
E-mail Support | p. 621 |
Customer Support | p. 622 |
Editorial | p. 622 |
The Authors | p. 622 |
What We Can't Answer | p. 622 |
How to Tell Us Exactly What You Think | p. 622 |
Index | p. 625 |