www.  
Frequently Asked Questions
Tutorials
AIHOST Forums
Contact AIHOST Support

 

ASP Tutorial

How do I create an ASP script?
Please review the terms below. These terms will be used in this section.

 
<% Start ASP  
%> End ASP  
' Comment tag  
response.write Print to the browser  

Note: All ASP pages must be named .asp (or .ASP) by default. If not, the web server will not parse the file to find the ASP coding.

Creating a simple script:
Open Windows Notepad or any other simple text editor.
Type the following code into the text editor:
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
<%
' This will print to the browser the
' words Hello World.
response.write "Hello World!"
%>
</BODY>
</HTML>

Now that you've created this ASP script, upload it to your favorite Windows account, and look at what you see in the browser.

If you right click and view the source of the page displayed, you will note that the browser never receives any of the comments, nor the ASP code. The browser will only receive the content it is told to print to the browser using the response.write command.

 
 

 
Online Forums  ::   Services ::   About Us  ::   Support  ::    Contact Us  ::    Login  ::    Home  
AIHOST.NET™ 2006. All rights Reserved, Powered By TelNex Technologies, Inc.