Author Archives

  • Lesson 4: Working with time and dates

    In this lesson, we will try to look at the many different options for working with time and dates in ASP. We went through two very simple functions in the previous lesson mostly to show you what ASP is. In this lesson, we will look at some more functions and advanced techniques. Time and date […]

  • Lesson 5: Loops

    In VBScript it is possible to manage the execution of scripts with different control structures. In this lesson, we will look at loops. Loops can be used to repeat parts of a script a specified number of times or until a certain condition is met. For … Next The syntax for a For …Next loop is:  Show […]

  • Lesson 6: Conditions

    Conditions are used to execute part of a script only if some predefined requirements (conditions) are fulfilled. For example, a condition could be that a date must be after 1/1 2012 or that a variable is greater than 7. If… Then … Else The first type of condition we will look at is the If-Then-Else condition, […]

  • Lesson 7: Put Comment into Script

    As you may have noticed, ASP scripts can easily look confusing. In this lesson, we cover why comments are important and how to insert them into your scripts. Why is it important to comment your scripts? When you are coding, you are writing commands to a server/computer and need to use a highly formal language […]

  • Lesson 8: Arrays – What & How?

    In this lesson we will look at what an array is, how it is used, and what it can do. Arrays can be a little difficult in the beginning. But give it a try anyway… we’ve tried to make it as easy as possible. What is an array? An array is a set of indexed […]

  • Lesson 9: Functions

    In previous lessons you have learned to use functions like Ubound and Weekday. In this lesson, you will learn to create your own functions using Function . What is a function? A function process inputs and return an output. It can be useful if, for example, you have a wide range of data you have processed or if you have calculations […]

  • Lesson 10: Passing variables in a URL

    When you work with ASP, you often need to pass variables from one page to another. This lesson is about passing variables in a URL. How does it work? Maybe you have wondered why some URLs looks something like this: http://html.net/page.asp?id=1254 Why is there a question mark after the page name? The answer is that […]

  • Lesson 11: Passing variables with forms

    Interactive websites require input from users. One of the most common ways to get input are with forms. In this lesson, we will look at how to build forms and process inputs on the server. <form> When you code a form, there are two particular important attributes: action and method. action Is used to enter the URL where […]

  • Lesson 12: Sessions

    When you visit a website, you do a number of different things. You click from one page to another. Perhaps you also fill out a form or purchase a product. As a web developer, such information is of great importance to developing successful web solutions. Suppose, for example, that you want to make a site […]

  • Lesson 13: Cookies

    How and what kind of information websites are collecting from their users, and especially how they use it, is a hot topic. Often cookies are mentioned as an example of how information is collected and pose a threat to your privacy. But are there reasons to be worried? Judge for yourself. Once you have gone […]