Cuyamaca Collegeskip to content
Apply  & Enroll
Departments
Help for Students
Find People
Online Services
Campus Information
Student Activites
CIS 213:  ASP Lab

 

 



 
  

ASP Lab

ASP is a server-side technology used mainly with Microsoft IIS Web servers.  We'll be using ASP with VBScript for database integration.  For example, if we want to add a record to a database via a form on a Web page, we need some kind of scripting.  HTML (or even HTML with client-sided JavaScript) doesn't allow interaction with files on the server.

In this lab you will write some very simple ASP/VBScript scripts so that you will have a better understanding of the code that Dreamweaver generates to facilitate database interaction.  This lab will make more sense to those with some programming background, but even programming novices will get an idea of how ASP works by doing these exercises.  The lab exercises are in chapter 5 of Dynamic Dreamweaver MX

ASP code must be processed by a Web server that supports ASP, so you have to test (preview) your pages on a server.  This is why we specified the testing server in the site definition.  To test, Dreamweaver copies a tmp file to the server and then displays it in a browser. 

OPTIONAL:  Setting up a web server on your home computer

The "What I Need To Get Started" section tells you how to install a web server on your home computer, but you don't need to do this.  You should be set up to test your asp files on the cis2 server -- you already set that up as the testing server in the site definition.  If you do set up a web server on your home computer, you can change the testing server part of your site definition to point to a folder you create in the local server root (should be C:\Inetpub\wwwroot\).  This is desirable if you have a slow connection to the Internet because you won't have to upload a file to test it.

What to Do

  1. Create a folder named asp in your root folder. Your work will go there.
  2. Read and do the exercises in chapter 5 of Dynamic Dreamweaver MX: Server-Side Overview.  Use F12 to test your work.  (not the http://localhost URL unless you installed a web server on your home computer).

 

Submitting work

  • Open 213homework.htm and add a link to the asp folder.
  • Upload your files to the cis2 server. Don't forget to DOUBLE CHECK YOUR WORK on the server!
  • Submit your URL to Blackboard.

Grading - 40 points

Points File Name Concept
2 Myasppage.asp simplest asp page - shows you have an asp-capable server
2 my_variable.asp variable value
4 my_greeting.asp, my_second_greeting.asp concatenation
4 asp_datatypes.asp, string_numbers.asp, convert_to_int.asp data types
2 len.asp, trim.asp, left.asp string functions
2 AND.asp, OR.asp, NOT_1.asp logical operators
2 operator_precedence1.asp, operator_precedence2.asp operator precedence
4 if_then.asp, if_then_else.asp, if_then_elseif.asp conditions
2 do_loop.asp loops
2 check_password.asp, redirect_wrong_user.asp Response.End, Response.Redirect
4 login_user.asp, welcome_user.asp, sex_selection.asp, display_sex.asp, display_sex2.asp, send_note.asp, thank_you.asp forms
4 display_users.asp, get_id.asp, send_note2.asp, thank_you2.asp query string
2 my_first_cookie.asp, cookie_login.asp, login_create_cookies.asp, rewrite_cookie.asp, delete_cookie.asp cookies
2 session_login.asp, login_create_sessions.asp, rewrite_sessions.asp sessions
2 link_page.htm, env_variables.asp, send_note3.asp environmental variables

 

 

 

    CIS 212 | CIS 213 | GD 217 | ED 214 | WebCT | Blackboard | Web Development Links