Lab 07: Code Implementation Report
Back to Lab 07 Dashboard
1. Introduction
This lab involves implementing a Customer Segmentation functionality and its associated user interface elements for the Pine Valley Furniture Company. The goal is to provide administrators with an intuitive interface to view and manage customer metrics effectively, building upon previous role-based access mechanisms.
2. Implementation Details
The project included the following major updates:
- CustomerSegmentation.aspx: Created a dedicated interface to display and categorize customers using sorting and demographic metrics. Includes robust database integration and code-behind interaction.
- Navigation Links: Updated the navigation menus across all relevant files (`UserRegistration.aspx`, `Products.aspx`, `Orders.aspx`, `Payment.aspx`, and `Catalog.aspx`) to include the Customer Segmentation link.
- Role-Based Access: Ensured that access to the Segmentation interface is strictly tied to administrative login sessions through `Session("User_Role")`. Regular users are actively blocked from visiting or seeing the URL.
3. Design Decisions & Security
We maintained a responsive and consistent design across the platform, utilizing the project's CSS files. Security tests confirmed that direct URL navigation bypass scenarios are prevented. The database queries remain parameterized referencing the central database via `Web.config`.