ASP or classical asp is Microsoft’s technology for making dynamic websites. ASP stands for active server pages. Asp code is directly embedded inside an html page. It is almost similar to PHP and JSP – Java Server Pages. The web pages written in asp have .asp extension instead of .html and are parsed by a server. ASP is used to build powerful websites and web applications. The web server used to serve ASP pages is the powerful IIS – Internet Information Services. ASP is not cross platform and can only be run on Microsoft based platform. After Asp, The latest addition to Microsoft’s server side technology is ASP.Net which is very powerful and supports multiple styles of website development.
To understand the concept of Active Server Page let us consider an example of VBScript to display a message in browser window. During the creation of Active Server Page the server side script can be identified in one of the following two ways. 1. Use the server side scripting block identifiers. 2. Use the SCRIPT tag with the RUNAT=”SERVER” attribute. Functionally both of these give the same result but its important to notice that the latter is the only one allowed in ASP>NET. Consider a simple example of ASP code to display the current time in the browser window.
Before creating Active Server Pages there is need of a web server that supports Active Server Pages. The best server will be Microsoft’s Internet Information Service (IIS) version 3.0 or higher version.
When writing ASP scripts a special set of ASP objects are available within the VBScript language to assist in the programming process. These objects give access to application program interface (API) that allows to manipulate the document displayed in the browser. Each of these objects has the following:
Properties: set or read information about the object. Methods: execute an action on an object> Collections: contain items related to the object.
Microsoft officially defines ASP as: Active Server Page is an open compile free application environment in which you can combine HTML, scripts and reusable Active X server components to create dynamic and powerful web based business solution. Active Server Page enables server side scripting for IIS with native support for both VBScript and JScript. In other words ASP is a Microsoft technology that enables you to create dynamic web sites with the help of server side script such as VBScript and JScript. ASP technology is supported on all Microsoft web servers that are freely available. If you have Windows NT 4.0 server installed you can download IIS 3.0 of 4.0 or higher version.
As ASP supports scripting languages which run on the server, the web page can be dynamically created. For example, one can create web page so as to greeting each user when they log into their page differently.
ASP is browser independent because all the scripting code runs on the server. The browser only gets the result from the server in a standard HTML page.
One of the greatest assets of ASP is database connectivity. ASP enables you to easily build rich database functionality into your website such as form processing.