Skip to:Content
|
Bottom
Cover image for Professional active server pages 2.0
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 Pagesp. 1
Chapter 1 Getting Started With ASPp. 7
What is ASP? And Why is it Better than HTML?p. 8
Shortcomings of HTMLp. 8
ASP and HTMLp. 11
Can ASP Pages be Viewed on Netscape or Internet Explorer?p. 12
The Web--The Next Generationp. 12
Static Publishingp. 13
CGIp. 13
Active Web Sitesp. 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.0p. 18
Finding your Way Around Personal Web Serverp. 20
Getting ASP Up and Runningp. 26
Checking it's all Working Finep. 26
Common Errors and Pitfalls with ASPp. 29
Creating and Editing ASP Scriptsp. 31
Viewing ASPsp. 34
So, What is ASP, Again?p. 35
Active Server Objectsp. 36
Active Server Componentsp. 36
Active Server Pages Scripting Objectsp. 37
Summaryp. 37
Chapter 2 Client-Side Scripting and Server-Side Scriptingp. 39
Client/Server Architecture: What's the Fuss?p. 40
In the Bad Old Daysp. 41
Separating the Tasksp. 41
Web Client/Server Architecturesp. 43
Scripting Languagesp. 43
Client-Side or Server-Side Scripts?p. 44
Client-Side Scriptsp. 44
Server-Side Scriptsp. 53
How Does ASP Work?p. 56
Summaryp. 61
Chapter 3 Basic ASP Techniquesp. 63
Getting Information From the Userp. 63
Using Forms to Obtain Information from the Userp. 64
Holding Information Obtained From the Userp. 74
Output to the Userp. 76
Exercises Utilizing these Basic ASP Techniquesp. 85
Summaryp. 95
Chapter 4 Variablesp. 97
What is a Variable?p. 98
Naming Variablesp. 98
Data Types in VBScript, or One Type For Allp. 99
Determining Subtypes with TypeName()p. 102
Arithmetic and Comparison Operatorsp. 104
Assignment Operatorp. 105
Comparison Operatorsp. 105
Logical Operatorsp. 106
Arithmetic Calculationsp. 106
Concatenating Variantsp. 107
Declaring Variantsp. 107
Using Option Explicitp. 108
Conversionsp. 111
Naming Conventionsp. 114
Constantsp. 115
VBScript Constantsp. 115
String Manipulationp. 115
Returning the Length of a Stringp. 116
Pruning the Beginning or End of a Stringp. 116
Removing the Middle of a Stringp. 117
Finding a Particular Wordp. 117
Giving it a Quick Trimp. 118
Variable Scopep. 122
Local Variablesp. 122
Global Variablesp. 124
Arraysp. 127
Declaring Arraysp. 128
Multi-Dimensional Arraysp. 131
Summaryp. 132
Chapter 5 ASP Control Constructsp. 135
An Example in Plain Englishp. 135
There are Two Kinds of ASP Statementsp. 136
Definitionsp. 137
Types of Control Statementsp. 137
Branching Structuresp. 138
Looping Controlsp. 138
Jumping Controlsp. 138
Examples of Control Structuresp. 139
Branching Statementsp. 140
If...Then Control Structurep. 140
Select Casep. 146
Looping Controlsp. 150
Jumping Structures and the Art of Reusing Codep. 161
Proceduresp. 162
Functionsp. 167
Summary of Reusing Codep. 172
Summaryp. 173
Chapter 6 Objects, Properties, Methods and Eventsp. 175
What is an Object?p. 176
Our Telephone in Detailp. 176
Object Termsp. 177
Programming with Objectsp. 183
The Telephone Objectp. 184
Altering the Properties of an Objectp. 185
Calling Methods of an Objectp. 189
What is the Active Server Pages Object Model?p. 193
Object Model Structurep. 194
Using the Object Model as a Road Mapp. 198
Summaryp. 199
Chapter 7 The Request Objectp. 201
The Request Objectp. 201
Request Object Collectionsp. 202
The QueryString Collectionp. 202
The Form Collectionp. 210
The Server Variables Collectionp. 215
The Cookies Collectionp. 225
The ClientCertificate Collectionp. 227
Properties and Methods of the Request Objectp. 230
The TotalBytes Propertyp. 230
The BinaryRead Methodp. 230
Summaryp. 230
Chapter 8 The Response Objectp. 233
The Response Objectp. 233
Sending Information back to the Clientp. 234
Controlling How Information is Returnedp. 237
Controlling What the Browser Doesp. 242
Other Information to Sendp. 248
Using the Request and Response Objectp. 248
Summaryp. 257
Chapter 9 Applications, Sessions and Cookiesp. 259
A Web Applicationp. 260
The Application Objectp. 260
Application Variablesp. 261
Application Object Collectionsp. 263
Application Object Methodsp. 264
Global.asap. 267
Understanding the Structure of global.asap. 267
What is a Session?p. 269
The Session Objectp. 271
Session Object Collectionsp. 271
Session Object Propertiesp. 272
Session Object Methodsp. 274
Sessions and global.asap. 278
Using Cookiesp. 284
Creating Cookiesp. 284
Using Keysp. 285
Making your Cookie Persistp. 285
Deleting a Cookiep. 286
Summaryp. 292
Chapter 10 Active Server Pages Componentsp. 295
The Server Objectp. 296
Creating an Instance of a Component Objectp. 296
The Ad Rotator Componentp. 298
The Content Linker Componentp. 302
Structure of the Content Linkerp. 303
ASP Pages that Use Content Linker to Hyperlink to the Next Pagep. 306
ASP Pages that Use the Content Linker to Display Descriptionsp. 311
Using the Content Linker and Control Structures to Display Only Appropriate Linksp. 315
Using the Content Linker with Home and End Hyperlinksp. 320
ASP Content Linker to Generate a Table of Contentsp. 322
The Browser Capabilities Componentp. 326
Other Componentsp. 330
Summaryp. 330
Chapter 11 The Scripting Objectsp. 333
What are Scripting Objects?p. 333
The Dictionary Objectp. 334
The FileSystemObject Objectp. 342
The FileSystemObject Object and its Object Modelp. 342
Server-Side Includesp. 351
The Text Stream Objectp. 355
Summaryp. 365
Chapter 12 Debugging ASPp. 367
Arrgh! I Goofed Again!p. 368
Where am I?p. 368
What Am I Doing Here?p. 369
The Lack of Good ASP Debuggersp. 371
Debugging ASP Scriptp. 371
Use Option Explicitp. 372
Use Response. Writep. 372
Use Subproceduresp. 373
Use Include Filesp. 374
Conditional Tracingp. 374
The Err Objectp. 381
The Script Debuggerp. 384
Enabling Debugging in IIS and PWS for NT Workstationp. 384
The Script Debuggerp. 386
Starting the Debuggerp. 387
Using the Script Debuggerp. 388
Client-Side versus Server-Side Debuggingp. 393
Summaryp. 394
Chapter 13 Databases with ASPp. 397
What is a Data Store?p. 398
What is a Connection?p. 398
What is a Data Source Name?p. 399
Creating a DSNp. 399
Using a Data Storep. 404
The Technical Bitp. 406
What is ODBC?p. 406
What is OLE-DB?p. 407
ActiveX Data Objectsp. 408
The Connection Stringp. 409
OLE-DB versus ODBCp. 410
The Connection Objectp. 411
Creating a Connection to a Databasep. 411
The Properties Collectionp. 413
The Connection Errors Collectionp. 416
Summaryp. 423
Chapter 14 Expanding Data Accessp. 425
The ADO Object Modelp. 425
What is a Recordset?p. 426
Connect String Differencesp. 427
The Recordest Objectp. 427
What are the Recordset Types?p. 431
What is Locking?p. 432
ADO Constantsp. 433
The Recordset Object in Detailp. 434
EOF and BOFp. 437
Bookmarksp. 437
Moving Through Recordsp. 438
Finding Recordsp. 441
Filtering Recordsp. 445
The Fields Collectionp. 448
Arrays of Rowsp. 453
The Command Objectp. 456
The Connection Object (Reprise)p. 461
Using Queries or Stored Proceduresp. 462
Modifying Datap. 471
Combined Examplep. 476
Summaryp. 482
Chapter 15 Writing an Applicationp. 485
WROX Classifiedsp. 485
Database Setupp. 487
Setting up the DSNp. 495
The Home Pagep. 495
User Registration and Loginp. 498
The Login Screenp. 508
Adding Items for Salep. 514
Browsing Items for Salep. 528
Bidding for an Itemp. 532
Accepting a Bidp. 547
Notifiying the Bidderp. 555
Next Stepsp. 559
Summaryp. 560
Appendix A The VBScript Languagep. 563
Array Handlingp. 563
Assignmentsp. 564
Constantsp. 564
Error constantp. 564
System Color constantsp. 564
Comparison constantsp. 565
Date and Time constantsp. 565
Date Format constantsp. 565
File Input/Output constantsp. 566
String constantsp. 566
Tristate constantsp. 566
VarType constantsp. 566
Control Flowp. 567
Functionsp. 568
Conversion Functionsp. 569
Date/Time Functionsp. 569
Math Functionsp. 570
Object Management Functionsp. 571
Script Engine Identificationp. 571
String Functionsp. 571
Variable Testing Functionsp. 572
Variable Declarationsp. 573
Error Handlingp. 573
Input/Outputp. 573
MsgBoxp. 573
InputBoxp. 575
Proceduresp. 576
Other Keywordsp. 576
Visual Basic Run-time Error Codesp. 576
Appendix B Active Server Pages Object Modelp. 581
Request Objectp. 581
Response Objectp. 582
Application Objectp. 583
Session Objectp. 584
Server Objectp. 584
The Ad Rotator Componentp. 585
The Content Linking Componentp. 585
Appendix C Scripting Object Methods and Propertiesp. 587
The Dictionary Objectp. 587
The FileSystemObject Objectp. 588
The TextStream Objectp. 588
The FileSystemObject object hierarchyp. 589
Drive Objectp. 589
Folder Objectp. 590
File Objectp. 591
Appendix D HTTP 1.1 Error Codesp. 593
Appendix E Useful References and URLsp. 599
Other Useful URLsp. 600
Appendix F Glossary of Terms and Acronymsp. 603
Appendix G Support and Erratap. 617
Wrox Developer's Membershipp. 618
Finding an Errata on the Web Sitep. 619
Adding an Errata to the Sheet Yourselfp. 621
E-mail Supportp. 621
Customer Supportp. 622
Editorialp. 622
The Authorsp. 622
What We Can't Answerp. 622
How to Tell Us Exactly What You Thinkp. 622
Indexp. 625
Go to:Top of Page