ASP (3.0) Sample Code
-
Determine execution time in PHP
by Gringod
This is based on the ASP script posted by Lio. It will determine the time taken for a php script to execute correct to 0.000000000000001 seconds.
-
Get the visitor's IP address
by James Crowley
How to get the visitors IP address from within your ASP script
-
Binding Multiple Fields to ASP.NET ListControl classes
by Neil Dodson
Out of the box, the ASP.NET list controls (CheckBoxList, RadioButtonList, DropDownList) only support data binding on a single field. Learn how to work around this to bind to as many fields as you need.
-
Cross page postbacks in ASP.NET 2.0
by Brock Allen
ASP.NET 2.0 introduces the ability to have an ASPX page postback to a different ASPX page with cross page postbacks. This was done all the time in ASP but wasn’t supported in ASP.NET 1.x. Here we show you how to use this new feature.
-
A Calendar Class for Classic ASP
by Macky M
Provides source code for a calendar to embed in your ASP applications
-
Iterate Arrays with For Each
by ElementK Journals
How to iterate arrays with the For Each statement
-
Debug ASP.NET pages using Tracing
by Julian Roberts
Demonstrates a useful debugging technique taking advantage of traces in ASP.NET.
-
Create an IIF statement in VBScript
by ElementK Journals
How to create a VBScript/ASP equivilant of the VB IIF statement
-
Sending email from ASP.NET
by Orcs Web
One of the most commonly performed operations that I see in web applications - aside from database actions - is sending email from code. This demonstrates how in ASP.NET.
-
Determining the logged-on user from ASP
by ElementK Journals
How to determine the current user when using the Basic or NT Challenge/Response security
-
Number of visitors online
by James Crowley
How to get the number of visitors currently online
-
Don't explicitly set the page language in ASP
by ElementK Journals
Why you shouldn't explicitly set the page language in ASP
-
Retrieving Remote Image Properties in ASP
by LawrenceF
This code will allow the programmer to retrieve the width, height, and depth of a jpg and gif that are remotely hosted.
-
Redirect Web Visitors By Country Using ASP and COM
by tgotchi
There are times when it is useful to redirect a visitor to different default web page based on the visitor's country of origin. One practical usage is to redirect visitor to web page with the language recognized by the visitor. This article shows you how using ASP and ActiveX component this can be done.
-
Determine whether a url exists
by ElementK Journals
How to determine whether files on a server exist using the ServerXMLHTTP object
-
Preventing Image Caching
by ElementK Journals
How to prevent image caching
-
Getting Started with Database Programming
by gigsv00
This is a conceptual idea of how I start to do database programming. In this article, I had highlighted a few points that become vital to understand for any new comers to do database programming.
-
Multiple Submit Buttons
by Kiran Pai
This script shows you how to submit the contents of a form to different programs depending on which Submit button you press.
-
Reading a file using the FileSystemObject
by James Crowley
How to read the contents of a file from ASP using the FileSystemObject
-
Preventing Caching
by James Crowley
How to prevent your pages from being cached