Skip to main content

Instructor-led training

ASP.NET Core MVC (VS2022) Training in Stevens Point, Wisconsin

The course is an introduction to ASP.NET Core MVC programming using C#.

What you'll learn

The course is an introduction to ASP.NET Core MVC programming using C#. It is based on the ASP.NET MVC Using C# course, but it uses the new ASP.NET Core framework, built on the open-source, cross-platform .NET Core. .NET Core is available on Windows, Mac and Linux. .NET now is a family of frameworks, including both the classical .NET available on Windows and the new .NET Core package-based frameworks that are cross-platform. The course gives insight into how ASP.NET MVC works as well as provide “how to� instruction. ASP.NET Core MVC is a powerful tool to create interactive Web applications, with a lot going on to make it work, and it is important that the student understand the basic principles.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Stevens Point, Wisconsin or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

The student should have a good working knowledge of C# and the .NET Framework. Basic knowledge of HTML and some prior exposure to .NET Core would also be helpful.

Course Outline

1. Introduction to ASP.NET MVC
Review of ASP.NET Web Forms
Advantages and Disadvantages of Web Forms
Model-View-Controller Pattern
ASP.NET MVC
ASP.NET Core
What is ASP.NET Core?
Advantages and Disadvantages of ASP.NET MVC
ASP.NET Core 5.0
Unit Testing
 
2. Getting Started with ASP.NET Core MVC
An ASP.NET Core MVC Testbed
Installing ASP.NET MVC
Using Visual Studio
Action Methods and Routing
Action Metho Return Type
Rendering a View
Creating a View
The View Web Page
Razor View Engine
Dynamic Output
Embedded Scripts
Embedded Script Example
Using a Model with ViewBag
Controller Using Model and ViewBag
View Using Model and ViewBag
Using Model Directly
Passing Parameters in Queue String
 
3. NET MVC Architecture
The Controller in ASP.NET MVC
The View in ASP.NET MVC
The Model in ASP.NET MVC
How MVC Works
Using Forms
Helper Methods for HTML
Form Submission
Model Binding
Input Validation
Nullable Type
Checking Model Validity
 
4. The Model
Complex Models
MVC Books Example
Microsoft Technologies for the Model
XML Serialization
Deserialization
ADO.NET
LINQ
ADO.NET Entity Framework 6
CRUD Operations
NuGet Package Manager
 
5. The Controller
IController Interface
Controller Base Class
Actions
Retrieving Data from a Request
Nullable Parameters
Action Results
Action Attributes
Filters
Asynchronous Controllers
 
6. The View
View Responsibility
View Page
Using Dynamic and Expando Objects
Html Helpers
Validation Attributes
Validation Helpers
 
7. Routing
Routing in ASP.NET Core MVC
Properties of Routes
Parameters in Routing
Attribute Routing
Registering Routes
Debugging Routes
Areas
 
8.  ASP.NET Core Web API
ASP.NET Core Web API
REST
Representation, State and Transfer
Collections and Elements
String Controller
Project Settings
HTTP Testing Tools
Using Postman
HTTP Response Codes
POST/GET Response Code
Named Route
Response Code for PUT and DELETE
Web API Client
HttpClient
 
9.  ASP.NET Core and Azure
What is Windows Azure?
A Windows Azure Testbed
Windows Azure Demo
Publish to Azure
Web Deployment Completed
Modifying a Web Application
Deploy to Original Site
A Deployed Application
 
Appendix A. Learning Resources

What makes ASP.NET Core MVC hard to master in two days

The C# is rarely the obstacle. The difficulty is how many cooperating pieces sit between an HTTP request and a rendered page, and the syllabus builds them in a deliberate order.

The request pipeline first. The course opens with the Model-View-Controller pattern, a review of Web Forms and the trade-offs of each. It then follows one request through action methods and routing, action return types, and Razor views. Developers coming from Web Forms often look for a page lifecycle that no longer exists. In MVC, routing selects a controller action, the action returns a result, and the view only renders what it is given.

Getting data in and out. The next layer is forms, HTML helpers, model binding, input validation, nullable types and checking model validity. A common mistake is trusting a bound model without checking it. Another is mixing three ways of passing data to a view: ViewBag, a model passed directly, and dynamic or expando objects. The syllabus covers all three, so the course is a good place to compare them.

Controller mechanics. Action attributes, filters, nullable parameters and asynchronous controllers need care, because filters and async actions change when and where your code runs.

The model layer. The syllabus covers XML serialization, ADO.NET, LINQ, ADO.NET Entity Framework 6, CRUD operations and NuGet. Teams should be clear about which data-access technology a given project actually uses, since Entity Framework 6 and Entity Framework Core are separate packages.

Routing and Web API. Attribute routing, route parameters, areas and route debugging are where many apps get confusing. The Web API module then applies REST ideas to controllers: correct response codes for POST, GET, PUT and DELETE, named routes, testing with HTTP tools such as Postman, and calling the API with HttpClient.

Who it suits and what to take around it

This is a general-level, two-day course for developers who already write C# and want to build web applications and web APIs with ASP.NET Core MVC. The stated prerequisites are a good working knowledge of C# and the .NET Framework, basic HTML, and ideally some exposure to .NET Core. It also suits teams who know Web Forms and are moving to MVC.

The syllabus includes an ASP.NET Core 5.0 topic. .NET 5 is the version named for this course, and its support ended in May 2022. The course therefore fits organizations that build, maintain, support or migrate applications on that version. Teams on newer .NET releases can ask about a customized private training proposal tailored to the versions they use.

Before: if the C# or framework background is thin, .NET Framework Using C# covers the language and class library that the MVC examples assume.

After: the model module introduces ADO.NET, LINQ and CRUD operations in one pass. ADO .NET Using C# goes deeper into data access for teams whose controllers depend on it. The wider .NET courses and learning guide shows other options.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Moving a Web Forms application to MVC. A team might use the Web Forms review, the MVC pattern and the routing topics to decide how existing pages map to controllers, actions and views, and how URLs should be structured with attribute routing and areas.
  • A data-entry application with validation. For example, a team building an internal records application could combine HTML helpers, model binding, validation attributes and checking model validity. Entity Framework CRUD operations would handle persistence, and filters would handle cross-cutting behavior.
  • A REST service for another client. A team might expose a collection through a Web API controller. They would return the right response codes for POST, PUT and DELETE, test it with Postman, and write a small HttpClient consumer. They could then publish the result using the Azure deployment module.

AI coding assistants with these topics

AI coding assistants are good at scaffolding: controller actions, Razor views, view models, validation attributes and LINQ queries. They are less reliable where the details depend on the framework version or on how the pieces interact.

  • Version drift. Generated code may use APIs or project templates from a different ASP.NET or Entity Framework generation than the one you target, for example Entity Framework Core calls in a project using Entity Framework 6. Compile against your actual target and read the generated API calls.
  • Routing. Assistants often produce route templates or attributes that conflict with existing routes. Check them with the route-debugging techniques from the routing module.
  • Validation and binding. Generated actions often skip the model-validity check or mishandle nullable parameters. Post bad input and confirm the action rejects it.
  • Async and LINQ. Assistants can mix blocking calls into async controllers, ignore cancellation, or leave a LINQ query deferred longer than intended. Review these by hand.
  • Web API semantics. Check the status codes returned for POST, PUT and DELETE against what the REST module teaches, and exercise each endpoint with an HTTP testing tool.

The habit that helps most is to write a test or an HTTP request for each generated action and run it before accepting the code.

Frequently asked questions

What level is this course?

It is a general-level, two-day introduction to ASP.NET Core MVC with C#. It covers the MVC pattern, views, models, controllers, routing and a Web API module.

What should I know before attending?

A good working knowledge of C# and the .NET Framework. Basic HTML helps, and some prior exposure to .NET Core is useful but not required.

What does the course cover?

The syllabus covers MVC architecture, Razor views, forms, model binding and validation, the model layer (ADO.NET, LINQ, Entity Framework 6), controllers and filters, routing, ASP.NET Core Web API and publishing to Azure.

Can this be delivered privately for our team?

Yes. Private training is available onsite at your location or live online, for organizations that want to train a group together.

Can the content be customized or aligned to our .NET version?

Private training can be customized and tailored to the technology versions your organization uses, including current releases. You can describe your requirements in a training proposal request.

Training locations

ASP.NET Core MVC (VS2022) training across the U.S. and beyond.

We provide private ASP.NET Core MVC (VS2022) training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all ASP.NET Core MVC (VS2022) training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.