10 year anniversary

Home


Hosting Directory


Host Search


Request a Quote


Web Hosting News


Hosting Forums


Web Host Awards


Guides
Web Hosting
Choose a Host
Dedicated Servers
Reselling
Free Hosting
Articles
Industry News
HTML Explained
Advanced HTML
ASP Explained


Free Listings on Web Host Directory and drive buyers to your Web Hosting Business





ASP Explorer Back to Articles & Guides 
Starting with ASP

So far I have not shown you one piece of ASP and we are already onto the fourth page. So it is about time this changed! What we are going to do here is look at ASP, take some very small first steps and look at the standard components that come with ASP. This will set you up for the first proper, in-depth look at ASP in ASP training.

What Does ASP Look Like

ASP uses scripts inside HTML pages to do the work. ASP can use a number of different flavours of script to do its work, VBScript (Visual Basic Script), JavaScript and PerlScript are three of the common ones. The whole of this site was written using VBScript (VBs) and this is what we shall be using for all of the training. If you want to use a different flavour of script, the application I will use to training you will provide you with links to other sites with that contain this information.

A First Script

Below is a first, basic ASP script, I have coloured the ASP specific elements red (and the comments in green)
<%@ LANGUAGE="VBSCRIPT" %>


<HTML>
<HEAD>
<TITLE>Demo ASP page</TITLE>
</HEAD>
<BODY>


<h1>just some standard html</h1>
<%
response.write("using asp to write to the page")


'PROGRAMMERS NOTE
'the line terminator in VBs is the carriage return!



'lets tell everyone what day of the week it is!


'get the current date currentDate = Date

'extract the day of the week information weekDayValue = weekday(currentDate)

'work out what the value is in real money 'PROGRAMMERS NOTE 'you could do this with a CASE statement 'so if you feel brave look up the SELECT CASE 'and use that instead of the big if

if weekDayValue = 1 then weekDayActual = "Sunday" elseif weekDayValue = 2 then weekDayActual = "Monday" elseif weekDayValue = 3 then weekDayActual = "Tuesday" elseif weekDayValue = 4 then weekDayActual = "Wednesday" elseif weekDayValue = 5 then weekDayActual = "Thursday" elseif weekDayValue = 6 then weekDayActual = "Friday" elseif weekDayValue = 7 then weekDayActual = "Saturday" else weekDayActual = "Ooops, something's not right here!" end if %>

<p> Today is <b><i><%= weekdayActual %></i></b>

</BODY> </HTML>
So, a nice and simple ASP script (which you can cut and paste and use on your own machine if you wish). You can see this script working on this site.

This script will form the basis of the first part of the ASP training section, and each detail will be looked at there. For now, the purpose of this script is to give you an idea of what ASP looks like in the raw! You can see that the ASP it interlaced with ordinary HTML. You can tell where the ASP specific stuff starts and ends by the <% (open) and %> (close) tags, which are very much like the <> and </> tags in HTML (that I hope you are already familiar with.


Starting with ASP - Part 2 >>

In the Beginning Table of Contents ASP Training - The Basics

Featured Hosts
Heart Internet: Reseller Web Hosting Specialist. Host Unlimited Web Sites With Unlimited Data Transfer, Webspace and Mailboxes for £29.99 per month
NaviSite: Leverage our London data centre for Application Services and Full-Stack Hosting Solutions with 24/7 Support. NaviSite: Run with Us.
Virtual Server Warehouse: No Set Up Fees, no minimum contract, VPS from £14.99, 30-day money back guarantee and fantastic support!
Bytehouse.co.uk: No Set Up Fees, no minimal contract, 2 Months Free on all Shared, VPS, & online backup Annual Plans, Full range of web hosting solutions, 30-day money back guarantee
Fast Hosting Direct: 2 Year No Limits UK Hosting with Free Domain & Website Builder for only £19.99 - #1 UK Budget Hosting Award Winner - No Limits on Webspace & Data Transfer - 60 Day Money Back & 99.99% Uptime Guarantee
UK2 Web Hosting from £49.99 / year: With 1 MONTH FREE! With free setup, free domains, massive space and bandwidth.
Fasthosts: Web hosting, personalised email and great value domain names all from Fasthosts - the UK's number 1 for web hosting.
Prime Hosting Ltd: UK (London) based Linux hosting with PHP, MySQL etc. Email with Spam Protection. 24/7 Support Helpdesk
£1 Web Hosting from Namesco: Great Value, Fully Featured Hosting Packages. FREE Domain Name & Google AdWords Voucher with every Hosting Plan. Fast UK Based Support.
DediPower: Dedicated to managed hosting and co-location solutions. Delivering service excellence with 27/7 support and industry leading SLA. Support with passion.

Most Popular Web Hosting Searches Advertisers, Get Listed Here. 
123-reg.co.uk
1500MB data transfer, 15 POP3s, Webmail, Web stats, full FTP access... more
Bargain Host
UK Web Hosting from £0.99 pence a month, all hosting plans come with a FREE Domain Name Registration or Domain Transfer. All ... more
Lewcy UK Hosting
UK only website hosting from Lewcy, Simple, Affordable, Reliable. UK based? UK audience? Then why choose a host on the other ... more



Windows Dedicated Hosts
Rackspace
Award Winning Managed Hosting. Live Support 24-7 and a ... more
Memset Dedicated Hosting
Want the power and security of a Dedicated Server but ... more
UKHost4u.com
30 Day Free Trial on all VPS Servers. Try us today !... more
Unix Less than 500MB
123-reg.co.uk
Free domain name with web hosting only £2.99/m. Limited ... more
Bargain Host
UK Web Hosting from £0.99 pence a month, all hosting plans ... more
Lewcy UK Hosting
UK only website hosting from Lewcy, Simple, Affordable, ... more
Unix/Linux Shared Hosts
123-reg.co.uk
Free domain name with web hosting only £2.99/m. Limited ... more
Bargain Host
UK Web Hosting from £0.99 pence a month, all hosting plans ... more
Ultimate Web Hosting
Extremely cheap for Unlimited Bandwidth Web Hosting. We ... more
advertisers: Get listed here
> About us
> Terms & Conditions
> Privacy Policy
> Advertising
> Contact us
> Forum Archive
> Sitemap
> RSS  RSS
RECOMMENDED BY
  Copyright © 1997-2008, Web Host Directory Ltd.  Web Hosting Directory