Introduction | p. 1 |
I Know Who You Are.... | p. 1 |
Why Active Server Pages? | p. 2 |
How This Book Is Organized | p. 3 |
ASP Me (No) Questions.... | p. 5 |
Help! It Doesn't Work! | p. 5 |
On the CD | p. 6 |
Margin Icons | p. 6 |
Getting Started | p. 9 |
So What's an Active Server Page? | p. 11 |
Boring, Dumb, Static HTML | p. 11 |
Forms and CGI | p. 12 |
Server APIs | p. 12 |
Lofty ASPirations | p. 13 |
ASP as Easy as 1, 2, 3 | p. 13 |
What Does an ASP Page Look Like? | p. 14 |
How Is ASP Different from Client-Side Scripting? | p. 17 |
How Is ASP Different from ActiveX Controls and Java Applets? | p. 19 |
The World of Internet Development | p. 19 |
Just How Easy Is ASP? | p. 21 |
Everything You Need to Get Started | p. 21 |
About Your Language, Young Man... | p. 22 |
Where's the Development Environment? | p. 24 |
Creating and Testing Your ASP Pages | p. 25 |
Get Your ASP in Gear: Creating Your First ASP Page | p. 26 |
How Does It Work? | p. 29 |
Modifying, Retesting, Creating New Pages, and Converting Old Pages | p. 30 |
Speaking Like a Native | p. 31 |
Understanding VBScript Basics | p. 33 |
Getting Started with Programming and Scripting | p. 33 |
Power -- In Time... | p. 35 |
Delimiters -- Keeping Your Tags and Your Code Apart | p. 36 |
Keep Your Comments to Yourself | p. 37 |
Up Your Case! | p. 38 |
As I Was Saying: Line Continuation | p. 39 |
Creating and Using Variables | p. 40 |
Cantankerous Constants | p. 45 |
How Functions Function or How to Get a Date | p. 46 |
Rolling Dice and Cutting Cards -- Using Functions in Formulas with Rnd and Int | p. 48 |
Common Commands and Functions | p. 51 |
Doing Math | p. 52 |
String Manipulation | p. 53 |
Dates and Times | p. 56 |
Real VBScript Programming | p. 59 |
Decisions, Decisions, Decisions: Using If..Then | p. 59 |
Get Off My Case! | p. 66 |
When Should You Use Select Case Instead of If..Then..Elself? | p. 68 |
Loop the Loop | p. 70 |
Arrays | p. 76 |
Creating Your Own Subroutines and Functions | p. 80 |
JScript for Geeks | p. 83 |
Who Should Read This Chapter? | p. 83 |
What Is JScript? | p. 84 |
JScript and ASP | p. 84 |
Here's What You Can't Do | p. 87 |
One Thing You Can (Finally!) Do: Strings | p. 90 |
Common Comments | p. 90 |
Be Gentle. He's Case Sensitive | p. 91 |
The Terminator (Of Lines) | p. 91 |
Variable Vagrants and Smooth Operators | p. 91 |
Conditionals and Loops | p. 96 |
Arrays | p. 99 |
Creating Functions | p. 100 |
The eval Function | p. 101 |
Getting to Know Your Objects | p. 105 |
Objects, Objects Everywhere! | p. 107 |
Okay, So What's an Object? | p. 107 |
Getting the Patter Down | p. 108 |
Using Objects | p. 109 |
Using Scripting Objects | p. 109 |
VBScript Objects | p. 110 |
JavaScript Objects | p. 114 |
Scripting Objects Available to Both VBScript and JScript | p. 123 |
Using Server Objects | p. 139 |
An Application, or Just a Bunch of Pages? | p. 139 |
Using ASP Server Objects | p. 140 |
The Global.asa File | p. 154 |
Server-Side Includes | p. 156 |
Creating ASP Applications | p. 159 |
Creating a Home For New Web Applications | p. 160 |
A Guest Book: Creating and Responding to Forms | p. 162 |
Creating a Radio: Music to Surf By | p. 168 |
A Personalized Welcome Page with Cookies | p. 173 |
Customizing a Page Based on the Date | p. 181 |
Web Site Roulette with Redirect | p. 183 |
The Power of ASP | p. 184 |
Using the Included Server Components | p. 185 |
A Rose by Any Other Name ... Is Confusing! | p. 186 |
So What Is a Server Component? | p. 186 |
The Components Included with Your Server | p. 187 |
Browser Performance Anxiety | p. 188 |
Just What the World Needs: More Advertising | p. 195 |
That Fresh Site Feeling with the Content Rotator | p. 198 |
Linking Your Content | p. 199 |
The Tools of the Trade | p. 201 |
Counting Page Hits | p. 202 |
Counting Other Things | p. 202 |
Remembering Who You Are with MyInfo | p. 203 |
Sending E-Mail | p. 204 |
A Whole World of Server Components | p. 205 |
Accessing the Database | p. 207 |
Accessing a Database from ASP | p. 209 |
Creating a New Database and Table | p. 210 |
For the Do-It-Yourselfer | p. 211 |
YAMA: Yet Another Mysterious Acronym -- Creating an ODBC DSN | p. 211 |
SMMA: Still More Mysterious Acronyms -- Using the DAC to Get to Your ADO | p. 215 |
Including ADO Constants | p. 216 |
Connecting to a Database | p. 216 |
From the Database to the Web Page | p. 217 |
Getting Exactly the Information You Want | p. 220 |
Updating the Database | p. 223 |
Diving Deeper with the Connection and Recordset Objects | p. 223 |
Updating the Database | p. 234 |
Catching Database Errors | p. 237 |
Really Cool ASP Applications | p. 241 |
The Cafe: Creating a Real-Time Chat Room | p. 243 |
The Blueprint for the Cafe | p. 244 |
Building the Cafe, Brick-by-Brick | p. 247 |
Playing in the Cafe | p. 256 |
Making It Better | p. 257 |
Classy Classifieds | p. 259 |
Planning to Create Classy Classifieds | p. 259 |
Kicking Off the Site Development | p. 263 |
The Home Page: Default.asp | p. 264 |
The Header Include File: Header.inc | p. 265 |
Adding an Ad: PlaceAd.asp | p. 268 |
The Category Listing: Category.asp | p. 272 |
Displaying the Details: Detail.asp | p. 274 |
Confirming the User: Confirm.asp | p. 276 |
Editing an Ad: EditAd.asp | p. 278 |
Deleting an Ad: DelAd.asp | p. 282 |
Searching for Ads: Search.asp | p. 284 |
Displaying the Results of a Search: Results.asp | p. 286 |
Making it Better | p. 289 |
The Part of Tens | p. 291 |
The Ten Best Places to Look When You Have a Question | p. 293 |
RTFM: Read the Flippin' Manual | p. 293 |
Books | p. 294 |
Magazines and Newsletters | p. 294 |
Newsgroups | p. 294 |
List Servers | p. 295 |
Online Forums and Web Sites | p. 296 |
Microsoft Web Technical Support | p. 296 |
Microsoft Telephone Support | p. 296 |
ASP Nerds | p. 297 |
User Groups | p. 297 |
The Ten Coolest Web Sites for ASP Developers | p. 299 |
The EdgeQuest Active Web Site | p. 299 |
ActiveServerPages.com | p. 300 |
15 Seconds | p. 300 |
The Official Microsoft SiteBuilder Network | p. 300 |
The ASP Toolbox | p. 300 |
Windows NT ActiveX Server Bulletin Board | p. 300 |
The ASP Hole | p. 301 |
The ASP Resource Index | p. 301 |
ASP 101 | p. 301 |
A Lot More Links | p. 301 |
Ten Interesting Things That Server Components Can Do for You | p. 303 |
Make It Easy to Send and Receive E-Mail from ASP | p. 303 |
Security | p. 305 |
Managing Files | p. 306 |
Execute Applications from ASP | p. 306 |
Make Money with Internet Commerce | p. 307 |
Access Information on Your UNIX, AS/400, or Mainframe Computer | p. 308 |
Charting and Reporting | p. 308 |
Accept Database Queries in English | p. 310 |
Browsing from the Server | p. 310 |
Other Interesting Stuff | p. 311 |
Appendixes | p. 313 |
Introducing Microsoft Visual InterDev | p. 315 |
Features of Visual InterDev and Why It Works So Well with ASP | p. 315 |
How Visual InterDev Is Different from Microsoft FrontPage | p. 316 |
Come on Baby, Do the Local Mode-tion (Or the Master Mode) | p. 318 |
The Solution | p. 318 |
Before You Start | p. 319 |
Creating the Phone List Project and Solution | p. 319 |
Introducing the Visual InterDev User Interface | p. 323 |
The Page Window | p. 325 |
Using the Visual InterDev User Interface to Create a Phone List | p. 325 |
Creating a Database to Store Your Phone List | p. 328 |
Creating a DSN for Your Database | p. 329 |
Creating A Visual InterDev Connection Object | p. 330 |
Connecting Your Database to Your Web Page | p. 334 |
Running Your Active PhoneList with Visual InterDev | p. 337 |
A Crash Course in Database Basics | p. 339 |
What's a DBMS? What's a Database? | p. 339 |
Tables, Rows, and Columns | p. 341 |
Primary Keys and Surrogate Keys | p. 341 |
Relationships between Tables | p. 342 |
Speaking Database-ese: SQL | p. 343 |
Creating Databases and Tables in Microsoft Access | p. 345 |
Creating the Database | p. 345 |
Creating a New Table | p. 347 |
Entering Data into the New Table | p. 348 |
Troubleshooting Your ASP Projects | p. 349 |
Getting Set Up | p. 349 |
But the Server Still Won't Do ASP! | p. 350 |
ASP Executes But I Still Get Errors | p. 351 |
If You're Still Having Problems | p. 352 |
About the CD | p. 353 |
Index | p. 359 |
IDG Books Worldwide End-User License Agreement | p. 381 |
Installation Instructions | p. 383 |
Book Registration Information | |
Table of Contents provided by Syndetics. All Rights Reserved. |