ASP scripts that have been made, can not be directly executed in a computer with a browser. Therefore, the ASP script translation requires a separate server. ASP scripts are processed on a Web server, the results are then sent to the client in HTML format. Therefore web pages containing ASP can be opened by any browser because the output is displayed in the browser is an HTML document. In Windows 2000, the library executioner ASP scripts are Asp.dll which by default is installed in the directory WINNT \ System32 \ inetsrv. When there is a request from a client to open a page that contains ASP scripts, IIS will ordered the file to execute existing scripts. Once completed, the results were combined with existing HTML code to form a complete HTML document. The complete document is then submitted to the web server to be forwarded to the client that requested it.
such as VBScript and JavaScript called client side script.
Know Far More ASP
Forward all applications will lead to Web Services. by because it's one of the components such as Web Services ASP. Without an understanding of ASP is very difficult to find out about various matters relating to the manufacture of the Web Services. To start you must understand ASP writing techniques, variable
and programming structure. Once you understand all of your new Web design program for your ASP.
ASP Script Writing
ASP Script writing can be placed on web pages with two ways:
<SCRIPT Language="VBScript" RunAt="Server">
'script ASP
</SCRIPT>
Cara 2:
<%
'script ASP
%>
Variables in ASP
Basically there is only one type of variables in ASP, namely variant. It's just for the ease of processing variables on the ASP can be divided into five, namely: object, string, numeric, date & time, and boolean. Variable object is created when we want to program using specific objects such as Scripting.FileSystemObject object, the object CDONTS.NewMail, and others. String variable is a variable
which contains the text, while the numeric variable is a variable that contains the numbers, both integers and fractions. Date time variable contain date and time information, while boolean type variable contains the value True or False logic.
Program Structure in ASP
Structure of the ASP program is not much different from the programming in general are not so much different from the Visual Basic programming language.
Variable declaration
To declare a variable in ASP is optional, which may should also not be done. Declaration is normally used to facilitate maintenance of the variables in the application. Variable declaration can be made absolute, ie
must be declared by adding the statement <% Option Explicit%> at the top of the program, before write commands other ASP.
<%
Dim lGaji
Dim sPesan
Dim oConn, oRs
%>
Posting Description (remarks)
Posting information on the program is done by first write the sign '.
Use operators & and +
Operator and is used to connect the string, while + operator is used to add numbers. Note the difference in the following example:
<%
A=100
B=50
C=A&B
D=A+B
'C = "10050"
'D = 150
%>
Making Sub Procedure and Function
Sub is a piece of the program that performs a specific task for easy identification and traceability program flow. Function is a kind of sub that returns a value.
<%
sub TulisJudul
Response.Write "<h3> Counting
Wide circle </ H3> "
end Sub
Function LuasLingkaran (jari2)
LuasLingkaran = 3:14 * jari2 * jari2
end Function
Dim R R = 5
TulisJudul
Response.Write "<BR> Jari-Jari:" & R
Response.Write "<BR> Area of a Circle:" &
LuasLingkaran (R)
%>