An Active Server Pages Tutorial, Part 2 North Carolina

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

Local Companies

StreamLogic Inc.
704-771-1090
3030 Glen Summit Dr.
Charlotte, NC
D P Solutions Inc
336-854-7700
4411 W Market St
Greensboro, NC
Advantec Information Systems LLC
336-275-2832
2007 Yanceyville St
Greensboro, NC
Blue Lizard Technologies, inc.
(919) 858-8885
1151 Executive Circle
Cary, NC
Racarie Software
919-654-4560
201 Shannon Oaks Circle
Cary, NC
The Lead Tree
321-206-8283
306 North Rankin Street
Atkinson, NC
BuildLinks: Web-based Project Management for Home Builders
888-700-9470
3800 Paramount Parkway, Suite 100
Morrisville, NC
Software Design Inc
336-378-0900
1301 Carolina St
Greensboro, NC
Community Web
336-499-3001
133 Hicks St
Winston-Salem, NC
Quadland
(336) 714-7417
301 N. Main Street
Winston-Salem, NC

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

The Lead Tree

321-206-8283
306 North Rankin Street
Atkinson, NC

Regional Articles
- An Active Server Pages Tutorial, Part 2 Albemarle NC
- An Active Server Pages Tutorial, Part 2 Apex NC
- An Active Server Pages Tutorial, Part 2 Arden NC
- An Active Server Pages Tutorial, Part 2 Asheboro NC
- An Active Server Pages Tutorial, Part 2 Asheville NC
- An Active Server Pages Tutorial, Part 2 Bessemer City NC
- An Active Server Pages Tutorial, Part 2 Boone NC
- An Active Server Pages Tutorial, Part 2 Brevard NC
- An Active Server Pages Tutorial, Part 2 Burlington NC
- An Active Server Pages Tutorial, Part 2 Camp Lejeune NC
- An Active Server Pages Tutorial, Part 2 Candler NC
- An Active Server Pages Tutorial, Part 2 Cary NC
- An Active Server Pages Tutorial, Part 2 Chapel Hill NC
- An Active Server Pages Tutorial, Part 2 Charlotte NC
- An Active Server Pages Tutorial, Part 2 Clayton NC
- An Active Server Pages Tutorial, Part 2 Clemmons NC
- An Active Server Pages Tutorial, Part 2 Clinton NC
- An Active Server Pages Tutorial, Part 2 Concord NC
- An Active Server Pages Tutorial, Part 2 Conover NC
- An Active Server Pages Tutorial, Part 2 Dunn NC
- An Active Server Pages Tutorial, Part 2 Durham NC
- An Active Server Pages Tutorial, Part 2 Eden NC
- An Active Server Pages Tutorial, Part 2 Elizabeth City NC
- An Active Server Pages Tutorial, Part 2 Fayetteville NC
- An Active Server Pages Tutorial, Part 2 Forest City NC
- An Active Server Pages Tutorial, Part 2 Fort Bragg NC
- An Active Server Pages Tutorial, Part 2 Fuquay Varina NC
- An Active Server Pages Tutorial, Part 2 Garner NC
- An Active Server Pages Tutorial, Part 2 Gastonia NC
- An Active Server Pages Tutorial, Part 2 Goldsboro NC
- An Active Server Pages Tutorial, Part 2 Granite Falls NC
- An Active Server Pages Tutorial, Part 2 Greensboro NC
- An Active Server Pages Tutorial, Part 2 Greenville NC
- An Active Server Pages Tutorial, Part 2 Havelock NC
- An Active Server Pages Tutorial, Part 2 Henderson NC
- An Active Server Pages Tutorial, Part 2 Hendersonville NC
- An Active Server Pages Tutorial, Part 2 Hickory NC
- An Active Server Pages Tutorial, Part 2 High Point NC
- An Active Server Pages Tutorial, Part 2 Hillsborough NC
- An Active Server Pages Tutorial, Part 2 Hope Mills NC
- An Active Server Pages Tutorial, Part 2 Huntersville NC
- An Active Server Pages Tutorial, Part 2 Jacksonville NC
- An Active Server Pages Tutorial, Part 2 Kannapolis NC
- An Active Server Pages Tutorial, Part 2 Kernersville NC
- An Active Server Pages Tutorial, Part 2 King NC
- An Active Server Pages Tutorial, Part 2 Kings Mountain NC
- An Active Server Pages Tutorial, Part 2 Kinston NC
- An Active Server Pages Tutorial, Part 2 Knightdale NC
- An Active Server Pages Tutorial, Part 2 Laurinburg NC
- An Active Server Pages Tutorial, Part 2 Leland NC
- An Active Server Pages Tutorial, Part 2 Lenoir NC
- An Active Server Pages Tutorial, Part 2 Lexington NC
- An Active Server Pages Tutorial, Part 2 Lillington NC
- An Active Server Pages Tutorial, Part 2 Lincolnton NC
- An Active Server Pages Tutorial, Part 2 Louisburg NC
- An Active Server Pages Tutorial, Part 2 Lumberton NC
- An Active Server Pages Tutorial, Part 2 Marion NC
- An Active Server Pages Tutorial, Part 2 Matthews NC
- An Active Server Pages Tutorial, Part 2 Mebane NC
- An Active Server Pages Tutorial, Part 2 Mocksville NC
- An Active Server Pages Tutorial, Part 2 Monroe NC
- An Active Server Pages Tutorial, Part 2 Mooresville NC
- An Active Server Pages Tutorial, Part 2 Morganton NC
- An Active Server Pages Tutorial, Part 2 Mount Airy NC
- An Active Server Pages Tutorial, Part 2 Mount Olive NC
- An Active Server Pages Tutorial, Part 2 Murphy NC
- An Active Server Pages Tutorial, Part 2 New Bern NC
- An Active Server Pages Tutorial, Part 2 North Wilkesboro NC
- An Active Server Pages Tutorial, Part 2 Raeford NC
- An Active Server Pages Tutorial, Part 2 Raleigh NC
- An Active Server Pages Tutorial, Part 2 Reidsville NC
- An Active Server Pages Tutorial, Part 2 Roanoke Rapids NC
- An Active Server Pages Tutorial, Part 2 Rockingham NC
- An Active Server Pages Tutorial, Part 2 Rocky Mount NC
- An Active Server Pages Tutorial, Part 2 Roxboro NC
- An Active Server Pages Tutorial, Part 2 Rutherfordton NC
- An Active Server Pages Tutorial, Part 2 Salisbury NC
- An Active Server Pages Tutorial, Part 2 Sanford NC
- An Active Server Pages Tutorial, Part 2 Shelby NC
- An Active Server Pages Tutorial, Part 2 Siler City NC
- An Active Server Pages Tutorial, Part 2 Statesville NC
- An Active Server Pages Tutorial, Part 2 Tarboro NC
- An Active Server Pages Tutorial, Part 2 Taylorsville NC
- An Active Server Pages Tutorial, Part 2 Thomasville NC
- An Active Server Pages Tutorial, Part 2 Trinity NC
- An Active Server Pages Tutorial, Part 2 Wake Forest NC
- An Active Server Pages Tutorial, Part 2 Waxhaw NC
- An Active Server Pages Tutorial, Part 2 Waynesville NC
- An Active Server Pages Tutorial, Part 2 Weaverville NC
- An Active Server Pages Tutorial, Part 2 Wendell NC
- An Active Server Pages Tutorial, Part 2 Whiteville NC
- An Active Server Pages Tutorial, Part 2 Williamston NC
- An Active Server Pages Tutorial, Part 2 Wilmington NC
- An Active Server Pages Tutorial, Part 2 Wilson NC
- An Active Server Pages Tutorial, Part 2 Winston Salem NC
- An Active Server Pages Tutorial, Part 2 Zebulon NC
Related Local Events
Automation Technology Expo South
Dates: 4/28/2010 - 4/29/2010
Location: Charlotte Convention Center
Charlotte, NC
View Details

Green Manufacturing Expo-Charlotte
Dates: 4/28/2010 - 4/29/2010
Location: Charlotte Convention Center
Charlotte, NC
View Details

Making the Right Decision with Business Intelligence and Analytics, NCTA Emerging Technologies & Trends Series
Dates: 2/10/2010 - 2/10/2010
Location: Belk Action Center
Charlotte, NC
View Details

North Carolina Legislative Holiday Reception (Govt. Affairs)
Dates: 12/3/2009 - 12/3/2009
Location: Washington Duke Inn & Golf Club
Durham, NC
View Details

North Carolina Legislative Holiday Reception (Govt. Affairs)
Dates: 12/3/2009 - 12/3/2009
Location: Washington Duke Inn & Golf Club
Durham, NC
View Details

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