Here are examples and instructions on how to properly code in ASP.
3-digits Formatting a String
When you need to format a string into separated 3-digits. eg. 1234567890 to 1,234,567,890.
Adding Charity Links to your Website
Sometimes an event comes along that makes you want to do your utmost to help. Itīs fairly easy to add a charity link - to the Red Cross or anybody else you support - to every page of your site, quickly.
Auto Fill In Web Field Forms
Letīs say you have a big contract page where you want a personīs name to fill into many spots automatically when they type it in once. How do you do that?
Browser-Specific Code for IE and Netscape
If you are designing a website, it is critical that you understand the differences between IE - Internet Explorer - and Netscape, and code for both.
Bubble Sort Code Technique
If you are sorting content into an order, one of the most simple techniques that exists is the bubble sort technique.
Clearing a Form Field
Many uses of ASP involve forms, to process information from your users. Hereīs the super-easy way to have a prompt in a form field, but to have it vanish when the user clicks to type.
Counting Letter Frequency in an Array
This sample code helps you see what arrays can be used for, and also shows a loop in action.
Creating a Random Password Generator
If you're using passwords of any type on your site, it is best to keep them random. That way they cannot be easily guessed at by intruders.
Creating an ASP Quiz / Test
Creating an online quiz or test for your website is easy with ASP. All you are doing is using forms to ask questions, and then comparing the answers with what you know to be correct.
Creating WebSite Specific Postcards
Postcards, e-cards, and e-messages are extremely popular on the web. Here is how you can code your own site-specific postcards for your website, using ASP.
Creating your own ASP Blog
The web has blog fever. You can easily create your very own blog for your website with use of ASP and SQL. Keep your visitors up to date with whatīs going on in your world!
Designing a Forum in ASP
If youīve looked at the price of forum software recently, you can see why itīs wise to just build your own. Plus, you get to choose features that matter to you!
Ensuring Proper Password Format
If youīre asking your users to submit a password of 6-12 characters, you want to make sure it is done properly and without any special characters which could compromise your system.
Formatting Text for HTML Display
A common task in ASP is to take a block of text from a database or user input, and put it on a webpage to be read. Make sure that you format it nicely!
Fortune Cookie / Random Quote Code - Array
Fortune cookie and random quote applications can be great fun for any website. Hereīs a version that uses an array to store the information.
Fortune Cookie / Random Quote Code - Database
Itīs always fun to have a fortune cookie on your website, to give a random quote or fortune or message each time the visitor comes by.
Getting Subscriptions to your Newsletter
If you want to set up an online newsletter subscription form, you need to do several things to handle the name securely and properly.
Handling Missing Graphic Files
Itīs common to use ASP to display graphic images on the fly. You can have your code check to make sure the graphic file is actually there - and show a default image if it is missing for some reason.
Mimicing a Form Post with ASP
Sending information in a URL by using & and ? certainly works - but it is not very secure! If you have your ASP code POST instead, you help prevent hackers from affecting your code.
Random Numbers in ASP
There are many situations in which youīll want to have a random number in your ASP script. This can be used to change ads, to generate greetings, and much more.
A regular expression lets you work with pattern matching. This is great for ensuring that phone numbers, social security numbers, passwords, email addresses and other values are of the proper format.
Send to a Friend Functionality
Youīve seen them before on webpages - the links that make it easy for someone to forward the URL and info along to a friend. Itīs free marketing! How do you implement it?
Traffic Counters and ASP
Just about every site enjoys traffic counters. It helps you easily know who is looking at what without digging through log files. You can watch it real time!
Using ASP to Process Forms
ASP is perfect for processing forms of all kinds, from polls to mail forms to guestbooks and much more. Here are instructions on having ASP get information from a form.
Using Response.Redirect to Change Pages ASP Homepage | Editor's Picks Articles | Top Ten Articles | ASP Site Map
The response.redirect command in ASP helps you automatically redirect to a new page if you need to. Itīs great for showing Thank You pages or moving through form processing.
Think your link belongs here? Use the contact page to let this editor know.