Library code snippets tagged with asp
-
Redirecting Without Halting Execution
by Lee Gunn - .NET C# Scotland
This snippet demonstrates how to send a redirect (302) to a client without halting execution.
-
Update Recordset using a MultiSelect Listbox
by Julian Roberts
Demonstrates how to select the appropriate items in a multi-select listbox, and then return the new selected values to the database.
-
A Calendar Class for Classic ASP
by Macky M
Provides source code for a calendar to embed in your ASP applications
-
Enabling Browser Caching of ASP Pages
by Amit Gupta
How to speed up your website by allowing browsers to cache web pages.
-
ASP Fractal
by Tawani Anyangwe
ASP Fractal shows the ways and means of using VBScripts in an Active Server Page for creating one of the most powerful virtual graphics in HTML. The source code is also provided for altering it to suit your needs.
-
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.
-
ADO Command and Stored Procedures
by David Nishimoto
You can design stored procedures to hide such complexities, leaving a more concise interface available for application development. This demonstrates how to use the ADO Command object to call these SQL Stored Procedures.
-
Sending binary data with ASP
by Lio_889
This ASP code shows how to send binary data (such as images) to the client without building a new component.
-
Displaying a Date
by Super Tal
This simple code will show how to display a date in an Active Server Pages.
-
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.
-
Determine execution time in ASP
by Lio_889
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.
-
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