What is Static, Dynamic and Active Server Pages

If we talk about about a single webpage then simply suitable document written in Hyper Text Mark Language (HTML) that can accessed using web browser worldwide.  A web page that is published on world wide have a URL (Universal Resource Locator) and accessible by entering a URL address and may contain text, graphics, and hyperlinks to other web pages and files.

static vs dynamic pages

Today we will learn about two types of web pages: static page and dynamic web page. We will also discuss active server pages(ASP) in detail which is used to create dynamic web pages. Web application may contain two type of pages, these are follows:

Static Web Pages

A static web page is an HTML document that stored in a file and does not change in response to user input. HTML is the language that is used to create states web pages for a web application. Static web pages are processed as follows:processing-static-page

  • A web browser request a page from a web server by sending the server a message know as HTTP request. For a static web page, the request includes the name of HTML file being requested.
  • A web server replies to the request by sending a message know as HTTP response back to the browser. For a static web page, the response include HTML document.

Dynamic Web Pages

A dynamic web page is an HTML document that is generated by a web application. Mostly the web page changes accordingly to the parameters are send to the web application by the web browser. Dynamic web pages are processed as follows:dynamic-page-processing

  • When are web server receive a request for the dynamic web page, the server passes the request to the web application,
  • The application generates a response, which is usually an HTML document, and return it to the web server.
  • The web server wraps the generated HTML document in an HTTP response and sends it back to the web browser.
  • The browser does not know whether the HTML was retrieved from a static HTML file or was dynamically generated by the web application. The browser display the HTML document that is returned.

Active Server Pages

Active server pages (ASP) is a technology that is used to create dynamic web pages. It was develop by Microsoft Corporation. It is an open and compile-free application environment. It is used combine HTML, scripts, and reusable ActiveX server components to create power Web-based application.

An ASP document has an .asp file name extension. It may contain HTML, client-side script, ASP object, applets and ActiveX components etc. The server-based code is identified <% opening tags and %> closing tags.

Did you Know: Architectural Models of Client Server Based Networks

When a user types an address in the address box of browser or clicks a link, a request is communicated to a web server to send a file to the web browser. If the file is a normal HTML file, the web server sends the file to the client computer. The browser on client computer interprets the HTML code and display it.

The following steps are involved:

  1. The user types an address in address bar or click a link.
  2. The request for a file is sent from to client to the server computer.
  3. The servers find the file.
  4. The server sends the HTML code to the client computer.
  5. The browser on client computer interprets the HTML code and display it.

The HTML file may also contain server-side scripts. Server-side script are special command in web pages that are processed on the server before they are sent to the web browser. The browser on the client computer then display the contents of the HTML file.

The following steps are involved:

  1. The user types an address in address bar or clicks a link.
  2. The request for a file is sent from client to the server computer.
  3. The server finds the file.
  4. The server process the server-side scripts and generate HTML code.
  5. The server sends the HTML code to the client computer.
  6. The browser on client computer interprets the HTML code and display it.

 Advantages of ASP

Some important advantages of ASP are as follows:

  1. Dynamic Contents: Asp is used to create a web page with dynamic content. The web server process the code and generates HTML  depending on the request  made by the user. For example, an Active Server Page can display a welcome message based on the time of the day.
  2. Platform independent:  An ASP sends only ASCII text to a client browser by default. Ant browser running on any operating system can access the application embedded in the ASP script.
  3. Security: ASP scripts is stored an processed on the server. The server process ASP script generates HTML and then send HTML code to the browser. The user can view the result of ASP script but can’t see the source code. The user can’t make any changes to the script.

As a developer, you can make changes to the .asp file on the server and save the changes to the file. The nest time the page is loaded, the script will automatically compiled. the reason being, ASP technology built into all Microsoft Web Servers.

Requirements For ASP

The following things are required to run ASP:

  1. Internet Explorer: Internet explorer 4.01 or later is required ASP pages.
  2. Web Server: A web server is required to run ASP pages on the computer. The web server provides an environment that is similar to the Internet. It provides an easier way to test the web pages without connecting to the internet. Different types of web servers are available . Most important web server  are Personal Web Server (PWS), Internet Information Service (IIS) and Apache Web Server etc.
[ad40]

Discussion & Feed Back:
If you want to ask any question from us or with other students, please participate in discussion sectionor email on

Got Something To Say:

error: