Single Page Web application with ASP NET Core MVC and Ajax
What you'll learn
- Get a short overview or refresher in basic MVC structure and creating new Web project in VS 2017 & VS 2019
- How to create a very basic out-of-the-box ASP NET Core MVC project with CRUD functionality
- How to install, configure and use Entity Framework Core
- How to import additional libraries using Nuget, Libman and npm package managers
- How to create very flexible Web based application using Ajax for asynchronous operations
- How to keep the code cleaner and more maintainable
- Some experience with C# and Visual Studio
- Basic understanding of concepts of Object Oriented Programming
- Basic knowledge of MVC, jQuery and EntityFramework is preferred
The course begins with a very short overview of ASP.NET MVC structure, a difference between .NET standard and .NET Core, and a difference between two types of .NET Web applications: MVC and Razor Pages.
After we discuss some pros and cons of out-of-the-box MVC project, we will spend two chapters creating a very simple database application using CRUD (Create Read Update Delete) operations with Entity Framework Core and SQL Server database. The purpose of the first project is to demonstrate how easy it is to work with ASP NET MVC. However, even creating an extremely simple application, we will face a real life obstacle which cannot be overcome with ASP NET alone.
The solution can be easily introduced by adding asynchronous operations to our project. We will talk about AJAX and spend the whole chapter creating SPA - Single Page Application, which will perform all operations of the first project plus additional functionality we were unable to implement before. All that will be done without leaving the main page.
In the final section we will talk about several techniques to make the whole application cleaner and more maintainable.
The course was done using Visual Studio Community Edition 2019 in .NET Core 3.1. However, we will discuss some difference between versions 2019 and 2017, so it can be done on VS 2017 using ASP NET Core 2.2
By the end of the course, you will learn how to use asynchronous partial web page updates without leaving or reloading the main page. Following the same simple pattern, you will be able to create very flexible easy to maintain user interface for your web based business applications that will behave, look and feel similar to desktop applications.
Even though this is a beginner level course, I believe that intermediate developers may find a couple of interesting thoughts about overall solution architecture, defensive programming and clean code.
Who this course is for:
- Beginner to mid-level C# developers who want to learn about adding flexibility to MVC framework with Ajax
- Beginner to mid-level C# developers who want to learn about developing user interface without going deeply into another frameworks
- All those who want learn more about ASP NET MVC and get another perspective on its capabilities
Gene Sukhorukov began his programming career in early 1990's, when he was developing software for medical school. His particular interest was in the areas of creating Expert Systems using Fuzzy Logic and Neural Networks algorithms written in PROLOG.
Since mid-90's, Gene has been developing software using VB4, 5, 6 and .NET, in which he switched from VB to C#.
The rise of machine learning after 2015 rekindled Gene's interest in Artificial Intelligence. He has taken a number of prerequisite classes in Python Data Science and Machine Learning, and he is working towards his Masters in that area. He also received a Professional Certification in Data Science from Microsoft.