When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles [1.x] [2.0]
ASPFAQs.com
Message Board
Related Web Technologies
User Tips!
Coding Tips
Search

Sections:
Book Reviews
Sample Chapters
Commonly Asked Message Board Questions
Headlines from ASPWire.com
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Security
Stump the SQL Guru!
Web Hosts
XML Info
Information:
Advertise
Feedback
Author an Article
Technology Jobs

















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
ASP ASP.NET ASP FAQs Message Board Feedback ASP Jobs
Print this page.

Windows Systems Administrator
Jupitermedia
US-CT-Darien

Justtechjobs.com Post A Job | Post A Resume

Published: Monday, August 23, 1999

ASP Basics: What's Happening Back There?


With each new language it seems computers get easier and easier to program. When computers first came into existence, programmers needed to know very cryptic and specific machine instructions to make those ancient behemoths do anything. Before too long assembly languages arose, and then high-level programming languages were introduced with the creation of Fortran. Today we have reusable components, GUI/WYSIWYG designers, and easy to use scripting languages.

- continued -

As computers become easier and easier to program, though, developers have to know less of what's happening in the bowels of the compiler or interpreter. While this saves time, I think it is important to have a firm grasp on what's going on behind the scenes. I think this is an important thing to know for two reasons: one, it's cool; two, having a better understanding of what's really happening leads to better written code, fewer bugs, and an improved self-esteem!

Client/Server Interaction for Static HTML Files Before we begin discussing how ASP pages "work," let's talk about how static HTML pages "work." The Internet is built on a client/server foundation. That means that there are two parts we must look at when dissecting an Internet transaction: the client and the server. The client is the web browser, be it Internet Explorer, Netscape, Lynx, Opera, or whatever. The server is the web server on which the HTML page exists.

The entire process of retrieving a web page goes like this:

  • You type in the URL into your browser, for example http://www.yahoo.com/index.html
  • Your browser finds the appropriate web server, and to that server says, "I need to look at the file /index.html, please."
  • The web server locates the file /index.html and sends it to the browser as HTML text.
  • The browser collects this text and parses it, determining how to display those colorful animated gifs and blinking text we've all come to love.

Client/Server Interaction for ASP Files It's that simple. The transaction has just three simple steps: the client requests the document, the web server sends the document, the client decides how to display it. With ASP, however, there are some additional steps are taken on the server before the HTML text is sent back to the client. Let's look at what happens with ASP:

  • You type in the URL into your browser, for example http://www.ASPisNeat.com/default.asp
  • Your browser finds the appropriate web server, and to that server says, "I need to look at the file /default.asp, please."
  • The web server locates the file /default.asp and parses out the ASP code, turning all of the ASP code into applicable HTML code. ASP code is code inbetween the ASP script delimiters (<% ... %>) or in OBJECT tags with the RUNAT=Server property set. Since all of the ASP is parsed into HTML, the client sees absolutely no ASP code!
  • The browser collects this HTML text and parses it, determining how to display those colorful animated gifs and blinking text we've all come to love.

You'll note that there is again just three steps, although the second step is a bit more involved. The whole process starts with the client requesting a file with a .ASP extension. The web server notes the extension, and since it has a .ASP extension (as opposed to a .txt, .htm or .html), the server parses the contents of the requested file before sending it to the client. So when you view an ASP file through IE or Netscape, your browser doesn't know that the .asp file is any different from a standard .html file!

  • Proceed to Part 2


    Windows Internet Technology | ASP.NET [1.x] [2.0] | ASPMessageboard.com | ASPFAQs.com | Advertise | Feedback | Author an Article



  • JupiterOnlineMedia

    internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info


    Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

    Solutions
    Whitepapers and eBooks
    Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
    Microsoft Article: 7.0, Microsoft's Lucky Version?
    Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
    Avaya Article: How to Feed Data into the Avaya Event Processor
    Microsoft Article: Install What You Need with Windows Server 2008
    HP eBook: Putting the Green into IT
    Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
    Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
    Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
    Avaya Article: Setting Up a SIP A/S Development Environment
    IBM Article: How Cool Is Your Data Center?
    Microsoft Article: Managing Virtual Machines with Microsoft System Center
    HP eBook: Storage Networking , Part 1
    Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
    MORE WHITEPAPERS, EBOOKS, AND ARTICLES
    Webcasts
    Intel Video: Are Multi-core Processors Here to Stay?
    On-Demand Webcast: Five Virtualization Trends to Watch
    HP Video: Page Cost Calculator
    Intel Video: APIs for Parallel Programming
    HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
    Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
    MORE WEBCASTS, PODCASTS, AND VIDEOS
    Downloads and eKits
    Sun Download: Solaris 8 Migration Assistant
    Sybase Download: SQL Anywhere Developer Edition
    Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
    Red Gate Download: SQL Compare Pro 6
    Iron Speed Designer Application Generator
    MORE DOWNLOADS, EKITS, AND FREE TRIALS
    Tutorials and Demos
    How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
    eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
    IBM Article: Collaborating in the High-Performance Workplace
    HP Demo: StorageWorks EVA4400
    Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
    Microsoft How-to Article: Get Going with Silverlight and Windows Live
    MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES