An Active Server Pages Tutorial, Part 2 Pendleton OR

We conclude our tutorial on working with ASP by looking at Boolean functions, sessions and cookies, text files, and accessing databases.

Local Companies

Hawk Ridge Systems
(503) 244-7853
10220 SW Greenburg Rd
Portland, OR
Blue Moon Software Inc
(541) 867-3447
South Beach, OR
Cad Services of Oregon
(503) 668-3550
Sandy, OR
P R F Enterprises
(503) 520-9757
Beaverton, OR
Computer Consultants Northwest Inc
(503) 375-3358
173 Salem Heights Ave SE
Salem, OR
Cdi Information Technology Services
(503) 614-5120
1100 NW Compton Way Ste 305
Aloha, OR
Shrubbery Networks Inc
(503) 520-0610
12160 NW Coleman Dr
Portland, OR
Comsys
(503) 293-2499
10220 SW Greenburg Rd Ste 301
Portland, OR
Resource One Inc
(503) 640-5100
PO Box 2187
Hillsboro, OR
Digital Infrastructures
(503) 224-1986
901 SW King Ave Apt 1001
Portland, OR

provided by: 
Originally published at Internet.com


Review Part 1

Session 6

Boolean Functions in VBScript and Their Application in ASP

Function Description VBScript ASP IsArray Determines whether a variable is an array or not.
Dim x(10) document.write(IsArray(x)) Returns true Dim x document.write(IsArray(x)) Returns false

<% Dim x(10) Response.write(IsArray(x)) Returns true Dim x document.write(IsArray(x)) Returns false %> IsDate

Determines whether a variable is a valid date or not. Dim x
x = "12/10/00"
document.write(IsDate(x))
Returns true
x = "555"
document.write(IsDate(x))
Returns false

<%
Dim x
x = "12/10/00"
Response.write(IsDate(x))
Returns true
x = "555"
document.write(IsDate(x))
Returns false
%>

IsEmpty Determines whether a variable has been initialized. Variables are empty when you declare them or explicitly set them to empty <%
Dim x
document.write(IsEmpty(x)) Returns true
x = "12/15/00"
document.write(IsEmpty(x)) Returns false
x = Empty
document.write(IsEmpty(x)) Returns true
%>

<%
Dim x
Response.write(IsEmpty(x)) Returns true
x = "12/15/00"
Response.write(IsEmpty(x)) Returns false
x = Empty
Response.write(IsEmpty(x)) Returns true
%>

IsNull

Determines whether a variable is null or not Dim x
document.write(IsNull(x)) Returns false
x = Empty
document.write(IsNull(x)) Returns false
x = Null
document.write(IsNull(x)) Returns true <%
Dim x
Response.write(IsNull(x)) Returns false
x = Empty
Response.write(IsNull(x)) Returns false
x = Null
Response.write(IsNull(x)) Returns true
%>

IsNumeric Returns true if the variable can be evaluated as a number

Dim x, y
x = 20
document.write(IsNumeric(x)) Returns true
y= "Hello"
document.write(IsNumeric(x)) Returns false <%
Dim x, y
x = 20
Response.write(IsNumeric(x)) Returns true
y= "Hello"
Response.write(IsNumeric(x)) Returns false
%>

Author: Anand Narayanaswamy

Read article at Internet.com site

Featured Local Company

Central Telephone

509-773-4472
1505 S. Grant
Goldendale, OR


Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML