Science Fair Projects Ideas - Active Server Pages

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Active Server Pages

Active Server Pages (ASP) is Microsoft's server-side technology for dynamically-generated web pages that is marketed as an add-on to Internet Information Services (IIS).

Programming ASP websites is made easier by various built-in objects. Each object corresponds to a group of frequently-used functionality useful for creating dynamic web pages. In ASP 3.0 there are six such built-in objects: Application, ASPError, Request, Response, Server and Session. Session, for example, is a cookie-based session object that maintains variables from page to page. Application Test Center is also available for load testing.

Most ASP pages are written in VBScript. Other scripting languages can be selected by using the @Language directive. JScript (Microsoft's implementation of JavaScript) is the other language that is usually available. PerlScript (Perl) and others are available as third-party add-ons.

Versions

ASP has gone through four major releases:

  • ASP 1.0 (distributed with IIS 3.0) in December 1996,
  • ASP 2.0 (distributed with IIS 4.0) in March 1998,
  • ASP 3.0 (distributed with IIS 5.0), and
  • ASP.NET (part of the Microsoft .NET platform). The pre-.NET versions are currently referred to as "classic" ASP.

ASP.NET introduced the ability to replace in-HTML scripting with full-fledged support for .NET languages such as Visual Basic .NET and C#. In-page scripting can still be used (and is fully supported), but now pages can use VS.NET and C# classes to generate pages instead of code in HTML pages.

Examples

Pages can be generated by mixing server-side scripting code (including database access) with HTML and client-side code. For example:

<%
' this line does nothing its just a comment the next line does:

Response.write "Wikipedia" ' This code writes out Wikipedia to the browser

%>
<% 
Dim x     'Make sure to always dim your variables
x = 1     'x is our variable in this example

If X = 1 Then 

%>

<b>X equals one</b>

<% Else %>

<b>X is not one</b>

<% End If %>

For more efficiency its best not to open and close asp tags <% %> often this causes the ASP engine to have to turn on and off.

  • For example, a more efficient solution would be:
<%

Dim strWikiPedia

strWikiPedia = "free"

'# this example uses pure ASP VBScript to get the job done...

If strWikiPedia = "free" then
   Response.write "stick around and enjoy without entering in a credit card"
     Else
   Response.write "get out your credit card. Or click a banner."
End If

%>

The code between the <% ... %> delimiters will be processed by the server. The resulting HTML is <b>X equals one</b> when the server-side variable X = 1.

External links

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice