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.
-
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.
-
Precise .NET Server Content Caching
by Dimitrios Markatos
A simple demonstration of how to programatically use the caching facilities that ASP.NET offers.
-
Use Local Variables
by ElementK Journals
Why you should use local variables wherever possible!
-
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.
-
Sending binary data with ASP
by Lio
This ASP code shows how to send binary data (such as images) to the client without building a new component.
-
A Horizontal Percentage Gauge
by Michael Balloni
A horizontal percentage gauge class for your ASP scripts
-
Limit the HTTP request buffer
by ElementK Journals
How to limit the size of the HTTP request buffer
-
Forms Authentication Against An XML File
by Orcs Web
The code demonstrates how to validate a username and password against an XML file.
-
Reuse ADO recordsets
by ElementK Journals
How to reuse ADO recordsets without destroying them first
-
Encoding your script files
by ElementK Journals
Protect both your server-side and client-side scripting by using the MS encoding utility
-
Proper Capitalization
by Scott Dennison
Certain lists look better with the first letter of each word capitalized. As an intermediate user, it took awhile to develop this for use in ASP pages, but here is a small function to perform this no
-
Enabling Browser Caching of ASP Pages
by Amit Gupta
How to speed up your website by allowing browsers to cache web pages.
-
Transactions in ASP
by ElementK Journals
How to use transactions in ASP
-
To buffer or not to buffer
by ElementK Journals
The pros and cons of buffering pages!
-
Displaying a Date
by Super Tal
This simple code will show how to display a date in an Active Server Pages.
-
Count Down
by Nick Avery
Count down the number of days to a date.
-
Create a messaging server using winsock
by S.S. Ahmed
Send instant messages to your main server (WMS application) using winsock
-
Determine programmatically whether a component is installed
by ElementK Journals
Prevent any nasty errors from Server.CreateObject... check that the component is installed first!
-
Paginate a recordset
by James Crowley
How to split up a recordset into multiple pages using ADO and ASP