Archive for October, 2007

Loop Structures in JScript

Tuesday, October 30th, 2007

There are a lot of times when you would want to execute more or less the same statements for a large number of times. You can do this though the use of loops. The concept of looping is based on the fact that a value is changed every time the loop executes an iteration - […]

Read the rest of this entry »

Conditional Structure in JScript

Tuesday, October 30th, 2007

Conditional structures are one the most important feature in any programming language. Jscript implements the if…else statement, just like a lot of other languages. The process is simple: the if structure evaluates an expression to a truth value (true or false); if the expression is evaluated to "true", then some certain statements are called afterwards, […]

Read the rest of this entry »

Arrays in JScript

Tuesday, October 30th, 2007

While variables are used for storing single values (a string, a number, etc.), arrays special variables that can hold for multiple values in the same variable. It's pretty difficult to store 50 names of different people in 50 variables, so this is the main purpose of a variable: it allows you to store as many […]

Read the rest of this entry »

Operators & Expressions in ASP

Tuesday, October 30th, 2007

You are already familiar with some operators in JScript, even if you've never used a programming language before. In fact, you've already used some of them in the previous chapters, and they didn't look unusual at all to you.
The arithmetic operators are quite what you expect them to be, similar to the ones used […]

Read the rest of this entry »

Variables in JScript

Tuesday, October 30th, 2007

A programming language cannot function without variables. Variables are used to store, retrieve, and also manipulate the value it contains. Based on that value, a variable can contain a string, a number, a boolean value etc. To use a variable, you must first declare it, which means that some memory is allocated to store the […]

Read the rest of this entry »

JScript Data Types

Tuesday, October 30th, 2007

There three main (primitive) data types in JScript: string, number and boolean. Like in any other language, strings are collection of characters (letters, digits, signs, blanks, etc.) strung together. The string type is used mainly to represent text, and the string values must be enclosed in matching pairs of single or double quotation marks.
When it […]

Read the rest of this entry »

JScript Syntax

Tuesday, October 30th, 2007

The JScript code is written in text format like most other programming languages. It consists of blocks of statements, that, when combined together, create a script. You can find most programming tools within such a block: variables, expressions, calls to functions, and immediate data references such as strings and numbers (also called "literals").
A statement is […]

Read the rest of this entry »

First ASP Script

Tuesday, October 30th, 2007

You can write ASP scripts the same way you write HTML code. You don't need expensive tools or professional programming environment; you only need the most basic text editor in the world - Notepad - which can be found in any Windows version. Just like a HTML document, ASP files are made out of plain […]

Read the rest of this entry »

Installing ASP

Tuesday, October 30th, 2007

No matter if you want to use ASP just to learn web-programming, or you want to create a major dynamic web-site, you must use a web-server that supports the ASP technology. There are two approaches to this. Either you choose to install Microsoft's Personal Web Server (PWS) or Internet Information Services (IIS) on your own […]

Read the rest of this entry »

What is ASP?

Tuesday, October 30th, 2007

ASP stands for Active Server Pages, and it is Microsoft's implementation of server-side scripting. In short, this server-site scripting basically means that a script is parsed and executed by the server. When a user requests a web-page containing ASP, the web-server will parse code and send the result to the user, so the ASP code […]

Read the rest of this entry »