Author: admin
-
ASP Forms and User Input
More Examples A form with method=”get”How to interact with the user, with the Request.QueryString command. A form with method=”post”How to interact with the user, with the Request.Form command. A form with radio buttonsHow to interact with the user, through radio buttons, with the Request.Form command. User Input The Request object can be used to retrieve…
-
VBScript Looping
Looping Statements Looping statements are used to run the same block of code a specified number of times. In VBScript we have four looping statements: For…Next Loop Use the For…Next statement to run a block of code a specified number of times. The For statement specifies the counter variable (i), and its start and end values. The Next statement increases the…
-
VBScript Conditional Statements
Conditional Statements Conditional statements are used to perform different actions for different decisions. In VBScript we have four conditional statements: If…Then…Else Use the If…Then…Else statement if you want to If you want to execute only one statement when a condition is true, you can write the code on one line: If i=10 Then response.write(“Hello”) There is no…
-
ASP Procedures
Procedures The ASP source code can contain procedures and functions: Example Insert the <%@ language=”language” %> line above the <html> tag to write the procedure/function in another scripting language: Example Differences Between VBScript and JavaScript When calling a VBScript or a JavaScript procedure from an ASP file written in VBScript, you can use the “call”…
-
ASP Variables
More Examples Declare a variableThis example demonstrates how to declare a variable, assign a value to it, and use the value in a text. Create an arrayArrays are used to store a series of related data items. This example demonstrates how to create an array that stores names. Loop through the HTML headingsHow to loop…
-
ASP Syntax
All our examples shows the ASP code in red. This makes it easier for you to understand how ASP works. ASP Uses VBScript The default scripting language in ASP is VBScript. A scripting language is a lightweight programming language. VBScript is a light version of Microsoft’s Visual Basic. ASP Files ASP files can be ordinary…
-
ASP Tutorial
ASP is an old (but still powerful) tool for making dynamic Web pages. ASP is a technology (much like PHP) for executing scripts on a web server. In this tutorial you will learn all you need to know about ASP. Easy Learning with “Show Example” This ASP tutorial contains hundreds of examples. Our “Show Example”…
-
ASP.NET Razor – VB Logic Conditions
The If Condition VB lets you execute code based on conditions. To test a condition you use the if statement. The if statement returns true or false, based on your test: Example The Else Condition An if statement can include an else condition. The else condition defines the code to be executed if the condition is false.…
-
ASP.NET Razor – VB Loops and Arrays
For Loops If you need to run the same statements repeatedly, you can program a loop. If you know how many times you want to loop, you can use a for loop. This kind of loop is especially useful for counting up or counting down: Example For Each Loops If you work with a collection or…
-
ASP.NET Razor – VB Variables
Variables Variables are used to store data. The name of a variable must begin with an alphabetic character and cannot contain whitespace or reserved characters. A variable can be of a specific type, indicating the kind of data it stores. String variables store string values (“Welcome to W3Schools”), integer variables store number values (103), date…