|
ASP, or Active Server Pages, is a Microsoft technology for
server-side scripting (programs that are processed by the
Web server before loaded into your Web browser). The ASP code
itself is generally written in VBScript (similar syntax to
Visual Basic) and is embedded into HTML pages which are given
the .asp extension. The embedded code sections run at the
server before the page is sent to the browser and can access
databases, update records, perform calculations and format
HTML dynamically. The functionality this provides is perfect
for search-engine-type sites and e-commerce where pages need
to be created on-the-fly in response to user input.
ASP generally requires Windows NT or Windows 2000 hosting
although it is technically possible to run ASPs with third
party software on Linux and other platforms. However, ASP
sites can be viewed in any browser because the clever stuff
happens at the server. All the browser gets is standard HTML.
This puts ASP sites at an advantage compared to sites using
client-side JavaScript to achieve similar effects. JavaScript
runs in the browser and may work differently on older versions
or different operating system versions of the same browser.
Another advantage of running code server-side is that the
active code is not visible to even the most experienced users
in the same way that client-side code is. You can't view ASP
code by viewing the source of a document, because all you
see is the HTML that was generated when the code ran. This
means your investment of thousands in developing complex code
can't be easily stolen by your rivals.
|