ASP NET MVC Training Report New
ASP NET MVC Training Report New
• Training Report
• Mays Zakaria Mohammad Saleh
• The World Islamic Sciences and Education
University
Training Summary
• Overview of the training on ASP.NET MVC.
• Training location: Social Security Corporation,
Amman.
• Supervisor: Bashar Al-Otti.
Key Components
• Model: Represents application data and
business logic.
• View: Focuses on UI and rendering model
data.
• Controller: Handles requests and processes
user input.
Features of ASP.NET MVC
• 1. Separation of Concerns
• 2. Routing
• 3. Testability
• 4. Extensibility
• 5. Razor View Engine
• 6. Integrated Security
• 7. Client-Side Development
• 8. RESTful APIs Support
MVC Folder Structure
• 1. App_Data: Holds data files.
• 2. App_Start: Contains configuration files.
• 3. Content: Stores static files.
• 4. Controllers: Contains controllers.
• 5. Models: Holds model class files.
• 6. Views: Stores HTML files for UI.
Controller
• Controller: Intermediary between Model and
View.
• Action Methods: Public methods handling
browser requests.
Action Selectors and Verbs
• Action Selectors: Attributes for identifying
action methods.
• Action Verbs: Define HTTP methods (HttpGet,
HttpPost, etc.).
Passing Data to Views
• 1. ViewBag: Dynamic object for temporary
data.
• 2. ViewData: Dictionary for key-value pairs.
• 3. TempData: Dictionary for transferring data.
• 4. Session: Stores data across controllers.
Entity Framework
• ORM for database interaction in .NET.
• Features:
• - Cross-platform
• - LINQ Integration
• - Change Tracking
• - Automatic Transaction Management
SQL Server Database
• LocalDB: Lightweight SQL Server for
development.
• External DB: Configuration for production
environments.
Data Validation in ASP.NET MVC
• 1. Required Validator
• 2. StringLength Validator
• 3. Range Validator
• 4. Compare Validator
HTML Helpers
• 1. EditorFor: Generates input elements based
on data types.
• 2. TextBoxFor, TextAreaFor: For text input.
• 3. PasswordFor: Encrypts passwords.
• 4. DropDownListFor, ListBoxFor: Dropdown
and list inputs.
Conclusion
• ASP.NET MVC is a powerful framework for web
development.
• Promotes separation of concerns, modularity,
and testability.
• Ideal for creating scalable, maintainable
applications.