Instructor-led online courses in ASP.NET Core, ASP.NET MVC, and ASP.NET Design Patterns. Read more...


Class library projects : .NET Framework, .NET Core, and .NET Standard
Recently Microsoft announced the release of .NET Standard 2.1. You might have already noticed different project templates in Visual Studio 2017 that allow you to build class libraries such as .NET Framework class library, .NET Core class library, and .NET Standard class library. As a beginner you might have wondered what exactly is the difference between them. To that end this article briefly explains each of these three types of class libararies.
Posted On : 12 Nov 2018
Use Eager, Explicit, and Lazy Loading in Entity Framework Core
You might be aware that Entity Framework Core 2.1 has added support for lazy loading of navigation properties. This means now we have three ways to load data in the navigation properties - eager loading, explicit loading, and lazy loading. This article summarizes all the three options with an example.
Posted On : 29 Oct 2018
Reuse UI with Razor Class Libraries (RCL) in ASP.NET Core
Developers always look for ways to reuse their code and markup. ASP.NET Core offers several ways to reuse code and markup within a project (partials, custom tag helpers, view components etc.). What if you want to reuse a piece of user interface (UI) across multiple web applications? Luckily, ASP.NET Core 2.1 introduced what is known as Razor Class Library (RCL) projects that can be used to accomplish this task.
Posted On : 22 Oct 2018
Use [Controller] and [NonController] Attributes in ASP.NET Core
ASP.NET Core MVC uses certain conventions when it comes to naming the controllers. Although these defaults work as expected in many cases, at times you may want to take charge of the controller naming. Luckily, ASP.NET Core provides two attributes - [Controller] and [NonController] - that can be used to alter this default behavior. To that end this article shows how to use these attributes with simple examples.
Posted On : 15 Oct 2018
Upload Large Files in ASP.NET Core
By default, ASP.NET Core allows you to upload files approximately 28 MB in size. However, at times you want to deviate from this limit and upload larger files on the server. To raise this limit you need to make a couple of additions to your code. And there are a few variations of how that can be done. To that end this article discusses these possible approaches to upload large files.
Posted On : 08 Oct 2018
Automatic Model Validation and Parameter Binding using ApiController Attribute
While developing ASP.NET Core Web API you need to perform model validation manually. You also need to bind action parameters explicitly using attributes such as [FromBody]. The [ApiController] attribute introduced in ASP.NET Core 2.1 can automate both of these tasks for you. This article explains how.
Posted On : 01 Oct 2018
Understand the difference between AddMvc() and AddMvcCore()
As a beginner, you must have stumbled upon these two methods - AddMvc() and AddMvcCore() - in the ConfigureServices() of the Startup class. you must have wondered about the difference between them. This article quickly points out the difference between the two.
Posted On : 17 Sep 2018
Create Custom Client Side Validation Attribute in ASP.NET Core
ASP.NET Core comes with a set of validation attributes that can be used to perform basic validations in your application. At times the inbuilt validation attributes doesn't meet your requirements and you need something customized as per your validation criteria. Luckily, you can easily create your own validation attributes that perform client side as well as server side validations. This article shows how.
Posted On : 10 Sep 2018
Perform Remote Validation in ASP.NET Core
While performing model validation, at times you need to validate values entered in client side controls against server side data. Such a validation is called remote validation. As you might have guessed remote validation uses Ajax to validate the data. Thus validation is initiated on the client side but performed on the server side. The outcome of the validation process is sent back to the client so that the end user can be notified accordingly. In this article we will learn to implement remote validations in ASP.NET Core MVC and ASP.NET Core Razor Pages.
Posted On : 03 Sep 2018
Allow only Ajax requests for an action in ASP.NET Core
ASP.NET Core offers attributes such as [HttpGet] and [HttpPost] that allow you to restrict the HTTP verbs used to invoke an action. You can also use HttpRequest object's Method property to detect the HTTP verb behind the current request. However, at times you need to know whether a request is an Ajax request or not. You may also need to restrict an action only to Ajax calls. Although thee is no inbuilt way to accomplish this task, you can easily implement such a feature in your application. This article discusses how.
Posted On : 27 Aug 2018

Subscribe to our newsletter

Get monthly email updates about new articles, tutorials, code samples, and how-tos getting added to our knowledge base.