This is a discussion on Basic ASP Example - A simple Clock within the ASP forums, part of the Programming Talk category; <% ' This simple asp page will display the current date/time ' First we declare (Dim) a string variable strGreeting, ...
|
|||||||
|
|||
|
Basic ASP Example - A simple Clock
<%
' This simple asp page will display the current date/time ' First we declare (Dim) a string variable strGreeting, which will hold the value / text "Hello, today is" ' and also a VB function now() ' Classic ASP page allows ASP code to be mixed with HTML code. ' strGreeting is displayed in HTML ' To run this asp page, you need to have IIS installed on your machine, and you can copy this file to ' your local drive (eg, C:\Inetpub\wwwroot\). Open your default browser, and type in http://localhost/aspExample.asp Dim strGreeting strGreeting = "Hello, today is " & now() %> <html> <head> <title>ASP Example</title> </head> <body> <%=strGreeting%> </body> </html>
__________________
My name is Rick and I'm a Exforsysoholic! (Is that even a word lol) |
| Sponsored Links |
|
|||
|
does <%=strGreeting%> work or you need <% ?strGreeting%>
where ? is for print |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CCIE SEC lab study material! | cciecrazy | CISCO Certification | 2 | 04-27-2006 08:04 PM |
| Visual Basic : Discovering Visual Basic .NET: Working with Variables | techguru | Visual Basic Tutorials | 0 | 08-29-2005 08:27 AM |
| Visual Basic : Make the Transition from Traditional Visual Basic Error Handling to the Object-Oriented Model in .NET | techguru | Visual Basic Tutorials | 0 | 08-29-2005 06:27 AM |
| Visual Basic : Discover a Series of Fortunate Event Handlers in Visual Basic | techguru | Visual Basic Tutorials | 0 | 08-28-2005 04:26 PM |
| Visual Basic : Get a Lean, Mean Dev Machine with the Express Editions of Visual Basic and SQL Server 2005 | techguru | Visual Basic Tutorials | 0 | 08-28-2005 06:26 AM |