ASP (3.0) Sample Code
-
Determine execution time in ASP
by Lio
This is a very simple and neat script that allows you to determine the time (in Milli seconds) required to execute the code in an ASP page.
-
Count Down
by Nick Avery
Count down the number of days to a date.
-
Send an email using a ColdFusion form
by Julia Lynne Green
How to create a simple form, that posts to the page and emails a letter, and the results to everyone, including you.
-
Create a messaging server using winsock
by S.S. Ahmed
Send instant messages to your main server (WMS application) using winsock
-
dbHitMe Site traffic logger
by Mike J
dbHit: A simple traffic logger I tossed together in the start of my ASP coding days. It simply collects data from your visitors and stores it in MS Access 97 mdb file.
-
Paginate a recordset
by James Crowley
How to split up a recordset into multiple pages using ADO and ASP
-
Visitors' Browser Information
by James Crowley
How to get information about the visitors browser
-
Number of visitors online
by James Crowley
How to get the number of visitors currently online
-
A Horizontal Percentage Gauge
by Michael Balloni
A horizontal percentage gauge class for your ASP scripts
-
Get the scripting language & version
by James Crowley
How to determine the Server-Side Scripting Language and Version
-
Determine programmatically whether a component is installed
by ElementK Journals
Prevent any nasty errors from Server.CreateObject... check that the component is installed first!
-
Reading a file using the FileSystemObject
by James Crowley
How to read the contents of a file from ASP using the FileSystemObject
-
Get the visitor's IP address
by James Crowley
How to get the visitors IP address from within your ASP script
-
Create an IIF statement in VBScript
by ElementK Journals
How to create a VBScript/ASP equivilant of the VB IIF statement
-
Determine whether a url exists
by ElementK Journals
How to determine whether files on a server exist using the ServerXMLHTTP object
-
Reuse ADO recordsets
by ElementK Journals
How to reuse ADO recordsets without destroying them first
-
Rename files using the FileSystemObject
by ElementK Journals
How to rename files using the FileSystemObject
-
Iterate Arrays with For Each
by ElementK Journals
How to iterate arrays with the For Each statement
-
Don't explicitly set the page language in ASP
by ElementK Journals
Why you shouldn't explicitly set the page language in ASP
-
Preventing Caching
by James Crowley
How to prevent your pages from being cached