Course Name : ASP Net MVC Training
Duration : 2 Months
Duration : 2 Months
The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating Web applications. The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc assembly.
The MVC framework includes the following components:
- Models. Model objects are the parts of the application that implement the logic for the application’s data domain. Often, model objects retrieve and store model state in a database. For example, a Product object might retrieve information from a database, operate on it, and then write updated information back to a Products table in a SQL Server database.In small applications, the model is often a conceptual separation instead of a physical one. For example, if the application only reads a dataset and sends it to the view, the application does not have a physical model layer and associated classes. In that case, the dataset takes on the role of a model object.
- Views. Views are the components that display the application’s user interface (UI). Typically, this UI is created from the model data. An example would be an edit view of a Products table that displays text boxes, drop-down lists, and check boxes based on the current state of a Product object.
- Controllers. Controllers are the components that handle user interaction, work with the model, and ultimately select a view to render that displays UI. In an MVC application, the view only displays information; the controller handles and responds to user input and interaction. For example, the controller handles query-string values, and passes these values to the model, which in turn might use these values to query the database.
The MVC pattern helps you create applications that separate the different aspects of the application (input logic, business logic, and UI logic), while providing a loose coupling between these elements. The pattern specifies where each kind of logic should be located in the application. The UI logic belongs in the view. Input logic belongs in the controller. Business logic belongs in the model. This separation helps you manage complexity when you build an application, because it enables you to focus on one aspect of the implementation at a time. For example, you can focus on the view without depending on the business logic.
The loose coupling between the three main components of an MVC application also promotes parallel development. For example, one developer can work on the view, a second developer can work on the controller logic, and a third developer can focus on the business logic in the model.
ASP .Net MVC Training course provides existing .NET developers with practical information and labs that enables them to build web applications ASP.NET MVC Framework.
ASP .Net MVC Training – Take Away
- Describe MVC design pattern.
- Develop MVC based applications using ASP.NET MVC framework.
- Create Model using ADO.NET Entity Framework approaches such as Database First and Code First
- Implement Models using ADO.NET objects to perform CRUD operations on the database, Implement Repository pattern
- Work with Areas , create custom filters, write unit tests for MVC Controllers
- Create Razor Views, partial views and strongly typed views, use ViewModels to create views, use HtML helpers to design views, create master detail view
- Implement Secure ASP.NET MVC applications
- Use jQuery to invoke MVC Actions asynchronously, post data using jQuery, Retrieve data in JSON format ASP.NET MVC applications, Implement REST services using WEB APIs, consume REST services using jQuery ajax methods.
- Use AngularJS to create Rich Internet applications(RIA), Use AngularJS a client front end framework to invoke services or MVC Controller actions.
Target Audience – ASP .Net MVC Training
- ASP.NET developers with 1 year experience preferred ; Candidate having knowledge of ASP.NET basics
- Graduates and Post-Graduates having knowledge of ASP.NET
Pre-requisites for ASP .Net MVC Training
- Knowledge of working with Visual studio
- Practical experience in ASP.NET
Objectives: you will learn
Recommended Next Course
- Developing Portal Applications using SharePoint
- Developing Cloud Solutions using Microsoft Azure
- Windows Communication Foundation
Complete Course Contents of ASP .Net MVC Training
1. Introduction to MVC
- A Brief History of Web Development
- Traditional ASP.NET Web Forms
- Benefits of ASP.NET MVC
2. MVC Architecture
3. The MVC Pattern
- The MVC architecture pattern
- Domain models and Repositories
4. Essential Language Features
- Automatically Implemented Properties
- Using Object and Collection Initializers
- Entity Framework
- Lambda Expressions
5. Working with Controllers
- Introducing the Controller
6. Model Templates
- Templated View Helpers
- Using Metadata for Data Values
7. Model Validation
- Explicitly Validating a Model
- Displaying Validation Messages
- Alternative Validation Techniques
- Security and Authentication
8. Working with Views
- Working with the ASPX engine
- Working with the Razor Engine
- Converting ASPX View to Razor View
- Partial Views
- Adding Dynamic Content to a Razor View
- Inline code
- Partial Views
9. Working with URLs and Routing
- About Routing
- Understanding the Routing Mechanism
- Adding a Route Entry
- Using Parameters
- Using Defaults
- Using Constraints
10. Working with Areas
- Setting Up Areas
- Actions in Areas
- Routing and URL Generation with Areas
11. Ajax and Client Scripting
- ASP.NET MVC’s Ajax Helpers
- Using jQuery with ASP.NET MVC
- Cross-site scripting ( XSS )