What are Active Server Pages?
by Steven Salmon
Active Server Pages provide web developers with an exciting way to create dynamic web sites. Unlike HTML, Active Server Pages allow you to take the next step in creating exciting and interesting websites.
HTML (HyperText Markup Language) has been around ever since the web browser first appeared all those years ago. HTML went from strength to strength until you really could not do any more with it. Active Server Pages (ASP) take over from where HTML left off in providing the web site creator with the tools and functionality to create rich and truly interactive websites.
ASP is not the only technology that allows you to create these interactive websites. Allaire has also appeared with a technology called Cold Fusion, however, to many, ASP is voted the technology which produces the most rapid results and more importantly it is much easier to learn.
So what are the differences between ASP and HTML? ASP is basically a scripting language that utilises VB Script. You can mix VB Script with HTML to produce web applications that offer an extra step in interactivity. The scripting language (VB Script) is processed by the server and not rendered by the web browser as HTML is. So HTML is very limited because the web browser must do all the work.
When you program a website with ASP, the programming is executed by the server not the web browser. This gives you increased performance and most importantly allows you to do much more.
So what can you do with ASP? In a nutshell Active Server Pages allow you to create dynamic forms that can return informative feedback to the user. You can access Databases via ASP, enabling you to sort database results and add new entries. You can update existing content on a website, and you can also remove content. Another excellent use of Active Server Pages is that you can even customize your website depending on which user is viewing it.
HTML is great and it will always be needed but you are very limited in what you can do with it. You have all seen websites that have nice graphics and are nicely formatted, but this is all static stuff. ASP gives us a whole new technology which, when used correctly, you can use to implement some truly amazing features like shopping cart systems, information databases, mailing lists, latest news and customized feedback forms.
Let's take a look at the Beginners Online Workshop site. It is connected to a central database that extracts information on demand. This article has been pulled out of the database by using ASP, and with a mixture of HTML, it is presented on your screen like this. We use the formatting of HTML and the power of ASP to deliver this article.
There are actually three elements to writing an ASP pages. Firstly, we need the text to display. Secondly, we need the HTML tags to format the display. Lastly, we need to have ASP statements to process the results. The display that is shown on your web browser depends on what the ASP statements process.
The ASP statements are very much like Visual Basic, in fact, VB Script is a cut-down subset of Visual Basic. So if you already know Visual Basic at an application level, moving to ASP will be a quick and painless transition.
So what do you need to run ASP on your website? Most importantly your website host will need to support Active Server Pages. There are plenty of service providers popping up each day, however in some cases they can be expensive. Probably a 30% increase in your hosting cost can be endured. Thankfully, prices are really coming down as competition is becoming greater. I recommend shopping around for a host because prices do differ and it can save you money by just spending a little time looking around.
The reason why prices are higher than standard hosting is because Active Server Pages require NT hosting to run. NT Hosting is more expensive than say UNIX hosting, so this is something to remember.
To write ASP pages, you don't need to have an ISP host your website. Thankfully, Microsoft have produced a product called Personal Web Server which allows you to explore and work with ASP on your home computer. This is ideal when writing your website at home until it is time to launch it. When you are ready to launch you know jolly well that in most cases it will work almost straight away across the Internet. If you are hunting Microsoft's website, try looking out for the NT Option Pack 4. There are both NT Workstation and Windows 98 versions available for free download. The size of this download is a little large so you might be better ordering the CD from Microsoft's website.
If you are a Netscape fan and you are wondering if Active Server Pages will work then you’re in luck. Active Server Pages are processed by the Server so whatever the ASP spits out, you are sure to know that your web browser will display it.
So in summary, ASP is looking really good for the Internet. You can get results with the minimal amount of fuss and with the Net becoming a big place, it seems that dynamic sites are the order of the day. In the next couple of weeks we are starting a tutorial on ASP on the Beginners Online Workshop website. Look out for it.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More Web Development Articles
More By Developer Shed
developerWorks - FREE Tools! |
You'll get answers to many questions and more from David Barnes, Lead Evangelist for IBM Emerging Internet Technologies. David will discuss aspects of Web 2.0 that bring value to corporations, academia, and government. He'll also discuss IBM's vision around Web 2.0, including the importance of remixability and consumability. The discussion will culminate with examples of various IBM Software Group solutions you can use to get ahead of the Web 2.0 adoption curve. FREE! Go There Now!
|
|
|
|
Secure your Web applications with IBM Rational AppScan Standard Edition V7.7, previously known as Watchfire AppScan. This Web application security testing tool automates vulnerability assessments and scans and tests for common Web application vulnerabilities. Visit IBM developerWorks to download a free trial of IBM Rational AppScan Standard Edition V7.7. FREE! Go There Now!
|
|
|
|
This whitepaper provides areas to consider when evaluating any software configuration management solution. It addresses how the IBM solutions (Rational ClearCase and Rational ClearQuest) meet the needs and requirements of both project leaders and developers to provide successful Software Change and Configuration Management. FREE! Go There Now!
|
|
|
|
Visit IBM developerWorks to download IBM DB2 Express-C 9.5, a no-charge version of DB2 Express 9 database server. DB2 Express-C offers the same core data server base features as other DB2 Express editions and provides a solid base to build and deploy applications developed using C/C++, Java, .NET, PHP, and other programming languages. FREE! Go There Now!
|
|
|
|
Visit IBM developerWorks to download a free trial of the latest release of IBM Lotus Sametime Standard V8.0. Lotus Sametime Standard V8.0 is a platform for unified communications and collaboration that combines security features with an extensible, open solution including integrated Voice over IP, geographic location awareness, mobile clients, and a robust Business Partner community offering telephony and video integration. FREE! Go There Now!
|
|
|
|
Attend this launch webcast with Scott Hebner, Vice President of IBM Rational Marketing and Strategy, for an overview of Rational’s new software offerings and resources to help modernize and accelerate software innovation on i on Power Systems – while ensuring past application investments are protected and continue to grow. Learn how these solutions are helping customers extend their core i5/OS solutions toward modern architectures such as SOA and web technologies to deliver business improvements that stand the test of time. FREE! Go There Now!
|
|
|
|
In this webcast, IBM Rational will discuss the importance of Web application security and will share techniques and best practices to introduce application security testing into current QA processes including: understanding common security vulnerabilities and techniques to integrate security testing with defect tracking and remediation systems in an effort to safeguard sensitive online information. FREE! Go There Now!
|
|
|
|
As organizations integrate software into every aspect of business, they are constantly pressured to deliver faster, better, and cheaper results. Unfortunately, a “dis-integrated” software delivery approach reduces returns while increasing costs. This IBM Rational White Paper shows how Integrated Requirements Management aligns organizations around maximizing value and keeping pace with change. FREE! Go There Now!
|
|
|
|
<a href="http://zeus.developershed.com/shonuff.php?blackbird=3853&zoneid=442&source=&dest=http%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fspaces%2Fjazz%3FS_TACT%3D105AGY31%26S_CMP%3DDEVSHED&ismap="><img src="http://images.devshed.com/corp/img/news/jazz01.gif" alt="developerWorks Jazz space" align="left"></a>You've heard the buzz about Jazz... want to know more about it from a developer's perspective? Check out the Jazz space on developerWorks. This space is an up-to-date resource for developers, including technical information about Jazz and products built on Jazz, like Rational Team Concert Express. The Jazz space includes content from a wide variety of sources, including links, feeds, and comments from experts. FREE! Go There Now!
|
|
|
|
Download a free trial version of IBM Rational Developer for System z, software that can help you deliver core development capabilities; the power of Java Platform, Enterprise Edition (Java EE); and rapid application development support to diverse enterprise application development teams. With comprehensive development tools to help create, deploy and maintain traditional enterprise and composite applications, Rational Developer for System z enables developers with different technical backgrounds to easily participate in important technology projects. FREE! Go There Now!
|
|
|
|
All FREE IBM® developerWorks Tools! |