ASP - Active Server Pages

ASP - Active Server Pages

This is my first ASP page. It is using a response.write command, as well as includes as seen by the top banner and the header and the scrollable middle content. This particular page is an overview of various functionaliy in ASP. A good starting place is to visit ASP - Basic Notes.

-Jamie

The name variable holds the value

An array of my heritage…

Germany
England
Ireland
Austria

Time

7/20/2018 8:16:56 AM

Good Morning!
This is using VB by default.
Click here to see an example of JavaScript in ASP.

You called a procedure which gave you the product of 3 and 4, which is 12.

Now let's try to use a form:

First Entry:
Second Entry:

(NOTE: the resulting page has information on Cookies)

Code used:

<%
dim name
dim heritage(3),i
heritage(0) = "Germany"
heritage(1) = "England"
heritage(2) = "Ireland"
heritage(3) = "Austria"
dim h
h=hour(now())
response.write("<h1>ASP - <i>Active Server Pages</i></h1><p>This is my first ASP page. It is using a <tt>response.write</tt> command, as well as includes as seen by the top banner and the header and the scrollable middle content.<br /><br /><i>-Jamie</i></p>")
response.write("The name variable holds the value " & name)
response.write("<h2>An array of my heritage&hellip;</h2>")
For i = 0 to 3
response.write(heritage(i) & "<br />")
Next
response.write("<hr /><h2>Time</h2><p>" & now())
response.write("</p>")
If h<12 then
response.write("Good Morning!")
else
response.write("Good day!")
end if
sub vbproc(num1,num2)
response.write(num1*num2)
end sub
dim headertype
headertype = "6"
response.write("<h" & headertype & ">This is using VB by default.</h6><a href='jsasp.asp'>Click here to see an example of JavaScript in ASP.</a>")
%>


<p>You called a procedure which gave you the product of 3 and 4, which is <%call vbproc(3,4)%>.</p>

<p>Now let's try to use a form:</p>
<form method="get" action="simpleform.asp">
First Entry: <input type="text" name="first" />
<br />
Second Entry: <input type="text" name="second" />
<br /><br />
<input type="submit" value="Submit" />
</form>
Tidbits | ASP Home | ASP - Basic Notes | VBScript Basics | JavaScript in ASP | e-mail | Jedi Knight Radio Button | Jedi & Sith Names | Get Your Info | Get Text File | Browser | HTML Encode | Piggyback | Script Timeout | Timed Session | Map Path | ASP Login | Random Quote | Params | Dates & Time | In an Array? | Search Form | Does URL Exist? | ASP Database