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! |
This whitepaper presents the benefits of successfully introducing static analysis into your organization using IBM Rational Software Analyzer. Additionally, it identifies some common pitfalls that can hinder the effective use of static analysis tooling as well as presents 10 simple strategies designed to help you quickly realize the value of static analysis using Rational Software Analyzer. FREE! Go There Now!
|
|
|
|
Discover how Rational tools and best practices for testing can make your job easier. The new Rational Testing eKits provide you with valuable resources – including demos, webcasts, tutorials, and articles – that help you address your specific testing needs across the software lifecycle. Five new eKits are available covering the topics of Requirements and Test Management, Functional Testing, Performance Testing, Code Quality and Embedded Systems, and SOA and Web Services Testing. FREE! Go There Now!
|
|
|
|
Join this webcast to discover the key requirements for successful change and release management. Learn how to extend your .NET environment to improve productivity and collaboration, and address core problems afflicting team development. In this webcast, we’ll review typical challenges faced by customers and how to resolve them with the IBM Rational Change and Release Management solution, including Rational ClearCase, Rational ClearQuest and Rational Build Forge. Replay is available for 9 months. FREE! Go There Now!
|
|
|
|
Get a free trial download of IBM Lotus Forms V3.0 (formerly Workplace Forms), which provides a zero-footprint eForms solution to help you automate and move forms-based business processes off the desktop and onto the Web. With Lotus Forms, you can extend applications beyond the firewall by creating a single electronic form document ready for use in both thick and Web 2.0 thin client format. FREE! Go There Now!
|
|
|
|
Get a free trial download of the latest version of IBM Rational Performance Tester V7.0.1, a load and performance testing solution for teams concerned about the scalability of their Web-based applications. Combining multiple ease-of-use features with granular detail, Rational Performance Tester simplifies the test-creation, load-generation and data-collection processes that help teams ensure the ability of their applications to accommodate required user loads. FREE! Go There Now!
|
|
|
|
You can now evaluate IBM Rational Asset Manager V7.0 online without installing or configuring it on your own system! Rational Asset Manager helps create, modify, govern, find, and reuse any type of development assets, including SOA and systems development assets. Rational Asset Manager helps you reduce software development costs and improve quality by facilitating the reuse of all types of software development-related assets. Visit developerWorks to learn more about this product and register to explore its capabilities online. FREE! Go There Now!
|
|
|
|
Visit IBM developerWorks to try the IBM SOA Sandbox for connectivity. The SOA Sandbox for connectivity provides a trial environment with the tooling and components to help you explore how to effectively connect your infrastructure and integrate all of the people, processes and information in your company. Use the hosted sandbox to explore SOA techniques that streamline connecting existing IT assets together, as well as learn how to connect them to new business logic. 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!
|
|
|
|
The Eclipse community is constantly working to extend Eclipse's functionality. In this webcast, learn about some of the most important and feature-rich projects under development. From multi-language support to plug-in development, tune in to see what Eclipse is capable of now. FREE! Go There Now!
|
|
|
|
Explore how Rational and WebSphere software enable enterprise documentation in SOA environments. Specifically, a new integration between IBM WebSphere® Business Modeler and IBM Rational® Method Composer software can help technical writers more easily keep enterprise operations manuals in sync with changes that are made to business processes, resulting in more accurate and timely documentation that benefits the entire enterprise. FREE! Go There Now!
|
|
|
|
All FREE IBM® developerWorks Tools! |