.NET Framework 4.7.2 Β β’Β SQL Server (SSMS) Β β’Β Bootstrap 5
CRUD & Pagination Β β’Β
Advanced Search Β β’Β
Validation Β β’Β
Responsive UI
π Manage Employees Efficiently β’ Streamlined CRUD Operations β’ Modern UI π»
A comprehensive Employee Management System built with ASP.NET Web Forms and ADO.NET, providing complete CRUD operations with a modern, responsive interface.
This is a feature-rich Employee Management System that demonstrates classic ASP.NET Web Forms development with server-side rendering and direct database interaction. The application provides all essential CRUD (Create, Read, Update, Delete) functionalities wrapped in a user-friendly and modern interface.
- Complete CRUD Operations - Add, View, Edit, and Delete employee records seamlessly
- Dynamic Data Grid - Employee data displayed in a clean, sortable GridView control
- Intelligent Form Handling - Single form that dynamically switches between Add and Update modes
- Robust Search Functionality - Filter records across multiple fields (ID, Name, Email, Contact, Address)
- Server-Side Pagination - Efficient handling of large datasets with custom navigation controls
- Dynamic Record Display - Configurable records per page (5, 10, 20, 50 options)
- Real-Time Filtering - Search results update dynamically as you type
- Responsive Design - Built with Bootstrap 5 for modern, mobile-friendly interface
- Real-Time Feedback - Success and error messages with auto-fade functionality
- Form Pre-Population - Automatic data loading when editing existing employees
- Dual Validation - Both client-side JavaScript and server-side ASP.NET validation
| Technology | Purpose |
|---|---|
| C# / ASP.NET Web Forms | Backend framework (.NET Framework 4.7.2) |
| ADO.NET | Database connectivity and operations |
| Microsoft SQL Server | Primary database engine |
| Bootstrap 5 | Frontend styling and responsiveness |
| JavaScript | Client-side interactions and validation |
| GridView, UpdatePanel | Server-side controls for data display |
Main dashboard displaying employee list with search, pagination, and action controls
Clean, intuitive form for adding new employees to the system
Pre-populated form for editing existing employee information
Dynamic search filtering across multiple employee fields
- Visual Studio 2019 or later
- .NET Framework 4.7.2
- Microsoft SQL Server (Express or higher)
Create the database and employee table by executing the following SQL script:
CREATE DATABASE EmployeeManagement;
GO
USE EmployeeManagement;
GO
CREATE TABLE Employees (
Id INT PRIMARY KEY IDENTITY(1,1),
Name NVARCHAR(255) NOT NULL,
Email NVARCHAR(255) NOT NULL UNIQUE,
ContactNumber NVARCHAR(50) NULL,
Address NVARCHAR(500) NULL
);
GOUpdate the Web.config file with your SQL Server connection details:
<connectionStrings>
<add name="EmployeeDB"
connectionString="Data Source=YOUR_SERVER_NAME;Initial Catalog=EmployeeManagement;Integrated Security=True;"
providerName="System.Data.SqlClient" />
</connectionStrings>Note: Replace
YOUR_SERVER_NAMEwith your SQL Server instance name (e.g.,AMAAN-PC\SQLEXPRESS01,localhost, etc.)
- Open
AmaanCRUD2.slnin Visual Studio - Build the solution (
Build β Build Solution) - Set
Default.aspxas the start page - Press
F5or click Run to launch the application
- Flexible Record Display - Choose between 5, 10, 20, or 50 records per page
- Smart Navigation - Previous/Next buttons with page information
- Performance Optimized - Server-side pagination for efficient data handling
- Multi-Field Search - Search across ID, Name, Email, Contact Number, and Address
- Real-Time Results - Instant filtering as you type
- Case-Insensitive - Flexible search matching
- Mode Detection - Automatically switches between Add and Update modes
- Data Pre-Population - Existing employee data loads automatically for editing
- Validation Stack - Client-side and server-side validation for data integrity
EmployeeManagementSystem-AspNet/
βββ Default.aspx # Main page with employee grid
βββ Default.aspx.cs # Code-behind for main functionality
βββ Web.config # Application configuration
βββ Outputs/ # Screenshot directory
β βββ Home Page.jpg
β βββ Add Employee.jpg
β βββ Update Employee.jpg
β βββ Search Employee.jpg
βββ bin/ # Compiled assemblies
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Amaan - GitHub Profile
β Star this repository if you find it helpful!