ASP (3.0) Sample Code
-
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.
-
Precise .NET Server Content Caching
by Dimitrios Markatos
A simple demonstration of how to programatically use the caching facilities that ASP.NET offers.
-
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.
-
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.
-
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.
-
Forms Authentication Against An XML File
by Orcs Web
The code demonstrates how to validate a username and password against an XML file.
-
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.
-
Debug ASP.NET pages using Tracing
by Julian Roberts
Demonstrates a useful debugging technique taking advantage of traces in ASP.NET.
-
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
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.
-
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.
-
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.
-
Dynamically filling ComboBoxes
by Kiran Pai
Filling the values of a dropdown SelectMenu depending on the selection in another Menu.
-
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.
-
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.