Back

Lab Details

Problem Statement

To demonstrate the functionality of two user interfaces in a Hospital Management System, consider the Patient Registration Form and the Search Patient Interface. For the registration form, the code-behind in VB.NET captures user input such as name, age, and gender, validates the data, and inserts it into the database using a SqlCommand. For the search interface, the logic retrieves patient records based on a given ID or name and displays them in a `GridView`. In the browser, the GUI renders with appropriate `TextBox` fields for input, `DropDownList` for gender selection, Button controls for actions (e.g., Register, Search), and a GridView for displaying results. Test cases for these include: (1) submitting the registration form with valid data should insert a new patient and confirm success, (2) submitting the form with empty required fields should show validation errors, (3) searching with a valid patient ID should return correct details, and (4) searching with a non-existent ID should show No records found. These interfaces collectively ensure smooth data entry and retrieval operations in the system.

Code Implementation Report

Sample Outputs

Lab 5 Output 1Lab 5 Output 1Lab 5 Output 1

Demonstration Pages

Patient RegistrationSearch
Web hosting by Somee.com