Category: 

What are Active Server Pages?

Article Details
  • Written By: R. Kayne
  • Edited By: Niki Foster
  • Last Modified Date: 10 September 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
The atmosphere of Jupiter's moon Io collapses every time it is eclipsed by the planet.   more...

September 29 ,  2008 :  The Dow Jones Industrial Average experienced its largest one-day drop in history.  more...

Active server pages (ASP) are the result of a Microsoft technology that runs server-side scripts to create dynamic Web pages for visitors. Active server pages are so-named because the server runs active scripts to turn out pages that are unique in content, depending on a visitor's request or input. By contrast, standard Web pages are static, meaning they do not change until the Webmaster updates them. A visitor's Web browser sends a request to a website for a page, and the domain's server receives the request and sends the page back. Visitor "A" sees the same exact page as visitor "B," and so on.

Active server pages employ a different scheme. Visitor "A" and "B" might see different content, even though they have requested the same Web page. This is made possible by an extra step in the server's processing of the page request. Instead of just sending the page, the server first executes any ASP scripts that are embedded in the HTML coding of the page. The ASP scripts serve to customize the page for the visitor.

Ad

For example, assume "Mr. wiseGEEK" has visited a site before and given his name, perhaps by registering. Using active server pages, the website might welcome him by displaying the following message: "Good morning Mr. wiseGEEK! It's 10:32am on a great Tuesday!" It might also take him to a specific page within the site. On the other hand, a new visitor to the site might be greeted with the time and an invitation to register. This might be at an entry page with content geared specifically towards selling the site's services. In other words, active server pages can personalize Web pages on the fly.

Active server pages can also provide functionality for Intranets and access to corporate databases or other resources. Flexibility and purpose is limited only by creativity, as ASP can support virtually any scripting language, including integrated support for VBScript and JScript.

ASP scripts are easily added into existing HTML pages. While programmers already familiar with scripting languages can quickly get the hang of incorporating active server pages into a web site, newcomers will also find it quite easy. Assuming some HTML familiarity, ASP scripts are not such a tough jump. Many complete scripts are freely available online, and can be easily customized with a text editor.

If interested in learning more about active server pages, you can find many web sites that provide tutoring, as well as several books. Active server pages can give your personal site or business domain true functionality that can make the difference between a good site and a great asset.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}