Learn ASP.NET Core and Design Patterns with Real-World Examples. Instructor-led online courses. Read more...
Master all the essential skills required to develop professional web apps using ASP.NET family of technologies. Instructor-led online training courses with lots of guided hands-on examples and demos. Carefully crafted course content for working professionals. Private coaching for selected individuals and small groups. Click here to know more.

Latest Articles

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
Use Angular Component as Element, Attribute, and Class
Components are building blocks of any Angular application. Most commonly Angular components exist as custom markup elements in the template. However, that's not the only way to use components. You can also use them as if they are an attribute of an HTML element. Or you can also use them as the value of css attribute on HTML elements. Using Angular selectors you can decide how a component will be used in the template markup. To that end this article illustrates each type of usage with a simple example.
Posted On : 24 Sep 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
Detect code changes and restart application using .NET Core file watcher
When you run a ASP.NET Core application using dotnet run CLI command, the application is started for you and made available at a specific URL and port. During development stage it's very common to make changes to C# code such as models, controllers, and other classes. To see these modifications in action you need to stop the application and again execute the dotnet run CLI command. Wouldn't it be nice if there is some way to detect such code changes and re-start the application automatically? Luckily, there is a tool called file watcher that does the trick. Let's see how.
Posted On : 13 Aug 2018
Multiple GET and POST methods in ASP.NET Core Web API
In ASP.NET Core MVC and Web API are parts of the same unified framework. That is why an MVC controller and a Web API controller both inherit from Controller base class. Usually a Web API controller has maximum of five actions - Get(), Get(id), Post(), Put(), and Delete(). However, if required you can have additional actions in the Web API controller. This article shows how.
Posted On : 21 May 2018

Tag Cloud

.NET Framework Administration ADO.NET AJAX AngularJS Architecture ASP.NET ASP.NET Core C# Components Configuration Custom Controls Data Access Data Controls Deployment HTML5 JavaScript jQuery LINQ Multithreading MVC Performance Programming Languages Projects Reviews Sample Applications Security Server Controls SQL Server User Controls Utilities VB.NET Visual Studio WCF Web Forms Web Services Windows Windows Forms XML