Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: ASP Quote Display Add a quote of the day! Tutorial

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.

Tutorial Details:

Add a quote of the day!

Learn to make a random quote of the day. View the demo to see the result.

Since you now are an expert on using files after lesson 4 (the Guestbook), let's make something a little bit more fancy. I often see people having a "tip of the day", or a "quote of the day", and I thought I should try to make a VBScript variant. It reads the quotes from a text file (for easy maintenance), and displays it.

The code:
Let's start coding! First make a text file in a directory. Fill it with your quotes, one on each line. To make it easier later on, add the number of quotes (lines) on the first line (alone).


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
ASP Quote Display Add a quote of the day! Tutorial

View Tutorial:
ASP Quote Display Add a quote of the day! Tutorial

Related Tutorials:

How to attach a user interface to a Jini service - JavaWorld October 1999
How to attach a user interface to a Jini service - JavaWorld October 1999
 
Use Microsoft's Internet Information Server as a Java servlet engine - JavaWorld June 2000
Use Microsoft's Internet Information Server as a Java servlet engine - JavaWorld June 2000
 
An open alternative to JSP - The faults of JSP So what's wrong with JSP?
How the template-based, open source API FreeMarker trumps JSP
 
Survival of the fittest Jini services, Part 1 - JavaWorld April 2001
Survival of the fittest Jini services, Part 1 - JavaWorld April 2001
 
The Jxta solution to P2P
The Jxta solution to P2P
 
Working in Java time
Working in Java time
 
Implement a J2EE-aware application console in Swing
Implement a J2EE-aware application console in Swing
 
XSLT blooms with Java
XSLT blooms with Java
 
Cache SOAP services on the client side
Cache SOAP services on the client side
 
Java's secret weapon
Java's secret weapon
 
Unwrap the package statement's potential
Unwrap the package statement's potential
 
Impressive !
Impressive !
 
Simple classes for JDBC
Simple classes for JDBC
 
Handling Events in JavaServer Faces, Part 2
Here in part two, Hans implements event handling for parts of the sample application discussed in part one.
 
Request bean ver. 1.5
Java bean allows you to proceed GET/POST requests to the specified host (cgi-script/servlet). So you can for example obtain contents of some page and use extracted information in your own jsp page.
 
What is the correct form of a MIDlet suite version number?
One character can be the difference between a successful installation and a failed attempt. Check your knowledge of MIDlet versioning.
 

Free Web Site Hosting Services Below is the listing of the hosting providers providing free web hosting services. These services helps you building your sites even if you have no experience in HTML writing. Zero
 
JSP FUNDAMENTALS
JSP FUNDAMENTALS JSP FUNDAMENTALS By: Hrishikesh Deshpande Introduction : JSP termed as Java Server Pages is a technology introduced by Sun Microsystems Inc. to develop the web application in more efficient way than Servlets. It has got many
 
Adding slash "\" character before quote "'" in a query
Adding slash "\" character before quote "'" in a query Adding slash " \ " character before quote " ' " in a query During the inserting the records in the database if user enters the phrases like "What ' s your name?", database gives the error due
 
Welcome! to the News letter archive
Welcome! to the News letter archive News Letter Archive Date Subject Dec-29-2001 Adding slash " \ " character before quote " ' " in a query
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.