How would you like to MASTER graphic design by next week?
Click here to find out how
Featured Photoshop templates - professional ready to use designs for your next project
View all templates
ASP Random Tutorials
Generating a random password
This function can be used to have a random password generated. It allows you to specify valid characters as well as specifying number of characters.
Generate random number
Generate random number
Generating random passwords
Let's say you have a website and contains a membership process. But you do not want visitor to type his/her own password and want to create a temporary password for new member. You may add following function to generate a random password.
Random Image Sample
This sample code presents three different ways to show a random image in ASP, each approach illustrated and explained. Source code available for download.
This is a quick and easy example of how to create a random password and mail it to the person who tried to register at your site.
Active Server Pages Tutorial
This is a two-module tutorial that provides a step-by-step introduction to several ASP features. The tutorial shows how to build sample applications and demonstrates key concepts you'll need to understand when developing your own ASP pages. The introductory section explains what ASP is, how it works, and other technologies that can be used in conjunction with ASP to create active content on your Web site. The first module introduces the creation of an ASP page, and focuses on the collection and transfer of data. It covers: Write and Run an ASP Page, Send Information by Using Forms, Create a Guest Book, Display an Excel Spreadsheet in ASP. The second module covers: Rotate Information Randomly - Shows how to rotate ads on your Web page randomly, and Record Traffic with a Page Counter
Add a quote of the day!
This lesson teaches you how to make a random quote of the day. It reads the quotes from a textfile (for easy maintenance), and displays it. Full source code is available for download.
Generating random records from the Database
This article shows how to generate random records from the database. Also explains how to generate random numbers. Sample Database and Code available for download.
Rotating Banner Ads using a Database
This tutorial shows how to create a simple Ad rotation system based on ASP-SQL Server combination. All Ad info (except images, which are assumed to be in current directory) is stored in SQL server table scaled Banners. The system is intended to provide easy random rotation and counting of Ad showing and clicks.
Randomizing a Recordset
This article describes several ways to use a SQL calculated field and the ORDER BY clause to arrange a recordset in random order. It provides a simple tool for verifying that the results are uniformly random. Also shows a technique for bubbling records with certain attributes to the top of an otherwise randomized list.