Why bother with ASP at all, when HTML can serve your needs? If you want to display information, all you have to do is fire up your favorite text editor, type in a few HTML tags, and save it as an HTML file. Bingo, you’re done! But wait – what if you want to display information that changes? Supposing you’re writing a page that provides constantly changing information to your visitors, for example, weather reports, stock quotes, a list of your girlfriends, etc, HTML can no longer keep up with the pace. What you need is a system that can present dynamic information. And ASP fits the. | A Practical Guide to Microsoft Active Server Pages By Manas Tungare ACTIVE SERVER PAGES About this guide. This practical guide was prepared as a reference for the ASP Workshop conducted by Manas Tungare at Fr. Conceicao Rodrigues College of Engineering in October 2000. The examples and samples used in this guide can be found on the web at http asp Thanks to Pankaj Kamat for proofreading this document. Copyright 2000 Manas Tungare. http Every effort has been made to ensure correctness reliability of the information provided however the author may not be held responsible for any errors that may have crept in. 2 ACTIVE SERVER PAGES Introduction 6 The need for ASP 6 So what is ASP 6 What Can You Do with Active Server Pages 7 What Do Server-Side Scripts Look Like 7 What you need to run ASP 7 Internet Information Services 7 Personal Web Server 8 Before you begin . 8 Steps for Installation 8 Creating Virtual Directories 8 Accessing your webpage 8 What is localhost 9 Hello World and more 10 Another way . 10 Displaying the Date . 11 . and more 11 Variables and Constructs 13 Dim em first 13 The Big If 14 For-Next Loops 16 For Each Object In Collection . 18 While . Wend 18 Select Case 19 Complex conditions connectives 19 And Or and Not 19 Subroutines Functions and Includes 20 Subroutines 20 Functions 20 Includes 21 The Object Model 23 The Request object 23 syntax 24 Collections 24 Methods 24 Note 24 25 The Response object 26 syntax 26 Collections 26 Properties 26 Methods 27 The Server object 28 syntax 28 Properties 28 Methods 28 The Session object 28 syntax 29 Collections 29 Properties 29 Methods 29 Events 29 The Application object 29 Syntax 30 Collections 30 Events 30 Handling User Input Forms QueryStrings 31