Lab 05: Code Implementation Report
Back to Lab 05 Dashboard
1. Introduction
This lab requires us to implement Customer Registration from the customer table, order placement to the order table and implement the logic of catalog.
2. Implementation Details
The project consists of the following ASP.NET Web Forms:
- Login.aspx: The entry point of the application. Provides a login form with username and
password fields. Validates credentials against the database and creates a session for authenticated users.
- UserRegistration.aspx: A registration form for new customers. Data is inserted into the CUSTOMER_T table.
- Products.aspx: Displays products using a Repeater control. Includes search functionality
with partial match support. Allows users to place orders directly from the product listing.
- Orders.aspx: An order placement form that captures delivery details (contact, address,
postal code). Automatically associates orders with the logged-in customer.
- Catalog.aspx: An admin-only page for managing the product catalog. Visibility is controlled
via role-based access using ASP.NET Panel controls.
- Payment.aspx: A payment processing page for completing transactions.
- HelpPage.aspx: Provides user guidance and help documentation.
3. Design Decisions
The application is built using ASP.NET Web Forms with VB.NET code-behind files. A shared
stylesheet.css provides consistent styling across all pages. Navigation is implemented using a
consistent navbar with ASP.NET HyperLink controls. Session variables are used for authentication, storing the
logged-in user's name and role. The Catalog page uses an ASP.NET Panel with conditional visibility to restrict
access to admin users only. The logout
functionality clears the session and redirects to the login page.