Department of Computer Graphics

CGT 456 Hypermedia Authoring II

Lab 6 (Due End of Period)

ASP.NET SELECT, INSERT, UPDATE, DELETE, TRUNCATE

Instructions

This lab will help you finish the ramp-up to applying your full knowledge from ASP 3.0 to the .NET environment. Your controls should be the only thing that exists in the forward facing page. All of your C# code should exist in the .cs file. This lab will give you practice using DataGrid, ExecuteReader, Data binding, ExecuteNonQuery, and SqlCommand.Parameters. In addition, TRUNCATE will be introduced to demonstrate its difference from DELETE.

Materials to turn in:

Procedures

  1. Open SQL Server Query Analyzer and run this script
  2. default.aspx
  3. default.aspx.cs
  4. defaultParams.aspx
  5. defaultParams.aspx.cs

 

Grading

Does it work -5 pts max
Coding -3 pts max
Comments -2 pts max
Total 10 pts possible