Home | Contact Us | Testimonials |
ASP Programming Projects | ASP Programming Reference
asp programmer


Home   Our Clients   Contact Us   Request an ASP Programming Quote
   

ASP PROGRAMMING REFERENCE

What is ASP Programming?

ASP stands for Active Server Pages. It is a server side scripting language developed by Microsoft that gained fame around 1996. Most ASP Pages are written in VBScript Syntax. Other sytaxes that ASP supports are JavaScript & Perl Script.

ASP sytanx is procedural and uses 'Top Down' logic that is object based versus object oriented. ASP consists of six main objects that are utilized to interact between HTML based browsers and an IIS Web Server. The ASP Objects are listed below with definitions:

  1. Response Object - It is used to send information to browser from the IIS Web Server.

    ex. <% Response.Write "Hello World, from ASP-Developer.NET" %>

    This would output to the browser:

    Hello World, from ASP-Developer.NET



  2. Request Object - It is used to retrieve information from the browser.

    ex. <% =Request.Form("Name") %>

    This statement would call and display the contents of the input text box that is titled "Name".



  3. Application Object - The Application file holds information pertaining to the entire application. All users that access a ASP Application share the same Application Variable Settings.

    <% Set Application("firtObj")=Server.CreateObject("ADODB.Connection") %>



  4. Session Object - The session object can be is global variable accessable throughout the entire application. As a user goes from page to page the session object is in existance. The session variables are removed either when the session timesout or when the user closes their browser.

    ex. <% Session("myFirstSessionVariable") = "ASP-Developer.NET" %>



  5. Server Object - The Server Object is used to access methods and properties on the IIS Web Server.

    ex. <% Set conn = Server.CreateObject("ADODB.Connection")%>



  6. Error Object - This object displays detailed error information produced by an ASP Page.

    ex. <% response.write("ASPCode=" & myErrObj.ASPCode) %>

This concludes the ASP Objects. It is amazing how utilizing a few objects can build very sophisticated applications. For questions regarding this article send an email to info@asp-developer.net.

Happy ASP Programming!

Return to the Main ASP Programming Reference Page

Home | Contact Us | Testimonials | ASP Programming Projects

© Copyright 2008,    ASP-Developer.NET