CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>

Relationship to "Real" Languages Table of Contents PrintView CL1
<Previous> Competing Technologies

XML and ASP <Next>


       

The "Charles Explains..." column
write charlescarroll@learnasp.com with feedback

ASP and the relationship between typical corporate programming languages

ASP can be written with Notepad or better editors (with Wizards, Snappy WYSIWYG work surfaces and such)  but traditional programmers who know other languages may soon have questions like:

Relax. ASP uses an architecture called COM (or DCOM these days) to talk to components you build with YOUR favorite languages!

First the programmer sits down with their favorite language and writes the code.

  1. Hopefully the programmer writes it with a compiler capable of producing COM ActiveX DLLs (Whew. That is a mouthful.)  They are also called COM Servers as well. Compilers capable of this are numerous but we will mention a few: Delphi, Visual Basic, Visual C, Powerbuilder.
  2. When all code is written and finished the code is compiled into said DLL.
  3. Said DLL is copied to the machine that is the Webserver and the standard registration tools are used to ensure the webserver is aware that DLL is operational.

Now let us go over the essential mechanisms that are ASP:

  1. A user asks for a page say:
    http://www.coyoteindustries.com/bye.asp

  2. The Web Server processing goodbye.asp (which is just an ASCII file) responds to commands inside that startup the DLL and call its code by name that you included in the DLL.
whatever.dll

ActiveX DLL

<<<<<<<

 
 

COM

<<<<<<<

 

<TITLE>bye.asp</TITLE>
</head>
<body bgcolor="#FFFFFF">
Today is <%=now%> and all is well<br>
<%
set x=server.createobject("your.object")
x.DoStuff
answer=x.DoMore
response.write answer
set x=nothing
%>

</body></html>
The webserver file

<<<<<<<


ASP compiler grabs page
Interprets all the <% %> markers
ands runs your object before
browser sees page!
<html><head>
<TITLE>hi.asp</TITLE>
</head>
<body bgcolor="#FFFFFF">
The accounting system is up. Checks went out on time!
</body></html>
The user at the browser receives

<<<<<<<

Relationship to "Real" Languages Table of Contents PrintView
<Previous> Competing Technologies

XML and ASP <Next>

CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>