What is ASP?
ASP is acronym for Active Server Page.
It’s Server side script language developed by Microsoft.
When ASP file is request by the browser,
the browser does not send the page back to the client browser
instead its content is interpreted & processed by the server.
ASP is also script language that you combine with
HTML document if your server supports ASP. The default language is
VBScript. However, you can specify to use JavaScript or perlScript. If you are building E-commerce page, ASP is your ideal language or one of the languages on your choice list.
Tools
In order to build ASP pages on your PC, first you need to install
PWS [Microsoft Personal Web Server] or IIS [Internet Information
Server]. For Windows XP Pro edition, you can install IIS from Windows Component in the Add/Remove
section. Windows XP Professional CD might be required. You can download PWS from Microsoft web site:
here . You can also learn how to set up
here. Otherwise you need host a that provides ASP server.
Here is how to write hello world program in ASP:
<html> <head> <title>hello world program</title> </head>
<body>
<% Response.write("Hello World") %> </body> </html>
This program declares a variable and writes it:
<html>
<body>
<%
dim h
h="Hello World"
response.write("Say: " & h)
%>
</body>
</html>
This program writes the current time:
<html>
<body>
It’s now <%=Time()%>
</body>
</html>
|