Learn about Basic ASP Syntax Rules (6 ASP):
This basic tutorial will include examples of ASP code, which will make learning ASP easy for you. To Practice either copy them or try to create similar codes on your own and then run them.
How to write an output to the Internet Browser:
Just like a HTML file, ASP file can contain HTML tags in it. The ASP file can also contain some Server Scripts in it which are enclosed in <% and %> known as delimiters.
These Server Scripts are included to be executed on the Server. They can contain expressions, procedures, statement and phrases which are valid for scripting languages you prefer to use.
Write Command:
The write command (response.write) is specifically used for writing an output to a browser. Following is an example which sends the “My first text” to the browser.
Example:
<html>
<body>
<% response.write(“My first text”)%>
</body>
</html>
There is another shorthand way to do this. This shorthand way is shown in following example:
Example:
<html>
<body>
<% =“My first text”%>
</body>
</html>
Using Scripts in ASP
VBScript:
Several Scripting Languages can also be used in ASP. But the default scripting language is VBScript. Following is an example which sends the “My first text” to the browser using VBScript:
Example:
<html>
<body>
<%
response.write(“My first text”)
%>
</body>
</html>
JAVA Script:
As JAVA Script is not the default scripting language, so you need to set it as a default at the top of a particular page in the language specification. Another important advice is: JavaScript is case sensitive, so write your ASP code with uppercase. You should only use lowercase when it is required by the language. Following is an example which sends the “My first text” to the browser using JAVA Script:
Example:
<%@ language=”JavaScript”%>
<html>
<body>
<%
response.write(“My first text”)
%>
</body>
</html>
Moreover the ASP is usually used with JavaScript and VBScript. But if your requirement is to use other scripting languages like PERL and REXX. Then you need to install their script engines separately.











HCG…
Such wonderfull post on here today….
Only wanna input that you have a very nice web site , I love the style it actually stands out.
Hello. Interesting site you have.
Found your site on Reddit today and really liked it.. I bookmarked it and will be back to check it out some more later.