How bishwanathjha/asp-net-sample-application works
• WebService – an ASP.NET web service (.asmx) that exposes employee-related operations (e.g., add, update, delete, view employees) and interacts with an MSSQL database.
• WebApplication – an ASP.NET web forms application that serves as the front-end, consuming the WebService to perform operations and render views (login, home, manage pages). It also incorporates assets like Bootstrap for theming and layout.
Main Components
• Frontend (WebApplication):
– Contains UI pages: Login.aspx, Home.aspx, Manage.aspx.
– Includes client-side assets (Bootstrap files, CSS, JavaScript) for styling and interaction.
– Maintains session state for login management.
• Backend (WebService):
– Exposes an ASP.NET web service (EmpWS.asmx) with its code-behind implementation.
– Contains entity models (e.g., Employee.cs) representing domain data.
– Uses configuration files (Web.config, Web.Debug.config, Web.Release.config) for service settings.
• Database:
– A MSSQL Server instance with a table to store employee details and stored procedures (as indicated by SQLQuery1.sql).
Relationships and Interactions
• The WebApplication consumes the WebService via a web reference. This means that when a user performs actions (e.g., logging in or managing employee records), the WebApplication calls the methods exposed by the WebService.
• The WebService communicates with the underlying MSSQL Server to execute database operations (CRUD operations on employee data, using stored procedures).
• Additional interactions come from client-side behavior in the WebApplication, like handling file uploads (avatar images) and rendering data using controls like GridView, TextBox, etc.
Architectural Patterns and Design Principles
• Service-Oriented Architecture: The separation of the application into a consumer (web app) and a provider (web service) demonstrates a clear service-based approach.
• Separation of Concerns: The solution distinguishes between presentation logic (in WebApplication) and business/data processing logic (in WebService).
• Use of ASP.NET web forms: Indicated by the use of aspx pages and code-behind files.
• UI/UX design pattern using Bootstrap for responsive design and standard UI components.