Say you were writing a Web page that performed conversions between Celsius and Fahrenheit temperatures. Let’s look at a basic example to help solidify these concepts in your mind. Before you can use a variable, though, you must declare it that is, you must let ASP know that you want to create a variable with a particular name. VBScript is what is known as a loosely typed language, which means that a particular variable may store any kind of information, be it a number, a piece of text, a date, or some more complicated chunk of data (as opposed to strictly typed languages where you can only store one kind of information in each variable). A variable may be thought of simply as a named location in memory where data may be stored. Like most programming languages, VBScript lets you store data in variables. The language used for writing most ASP programs, and which I’ll be using throughout this series, is called VBScript. Oh sure, I gave a slightly more interesting example that displayed the current server time, but to be really useful a script needs to perform some form of calculation, or manipulate dynamic information to present it in some interesting way. When it comes right down to it, this script doesn’t do anything a plain, old HTML page couldn’t do. Here is the listing for the first ASP script I helped you create in the previous article: 1 Īs I admitted in that article, this is a pretty uninteresting example of an ASP script. This article picks up right where the previous article in the series, Getting Started with ASP, left off. Specifically, the goal of this series is to teach you all you need to know to create dynamic Web sites using ASP. This article is the second in a series teaching ASP. In this article, I’ll bring you up to speed on the basic syntax of the VBScript language, including variables, operators, and control structures. One unique feature of ASP is that it lets you choose your favourite scripting language, be it JavaScript or VBScript however, VBScript is by far the most popular choice. Active Server Pages (ASP) is a proven, well-established technology for building dynamic Web applications, which provides the power and flexibility you need to create anything from a personal, Web based photo gallery to a complete catalogue and shopping cart system for your next eCommerce project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |