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

Migrate minimal APIs to controller based APIs
In the previous part of this article series we discussed a few ways of organizing minimal APIs. There can be situations when you would want to migrate your minimal APIs to controller based APIs. In this article we will move our minimal APIs to controller based APIs and see how much work is involved.
Posted On : 19 Jan 2022
Six ways to organize minimal APIs in ASP.NET Core applications
In the previous part of this article series you learned to add minimal APIs to the Startup class. So far we have added minimal APIs to the Program.cs file. If you have only a handful of APIs this won't create any problem. But if you have a lots of minimal APIs to deal with, at some point you will want to organize them in a better way.
Posted On : 05 Jan 2022
Add minimal APIs to the Startup class
In the previous article of this series we discussed integrating ASP.NET Core Identity with JWT and minimal APIs. Minimal APIs are introduced as a part of ASP.NET Core 6.0. All the new project templates in Visual Studio 2022 use the new way of application startup. However, you might be migrating an older project to ASP.NET Core 6.0 and you may want to continue using the Startup class based application initialization. What if you want to create minimal APIs in such cases? Can they be defined in the Startup class? That's what we are going to discuss in this part of this multipart article series.
Posted On : 22 Dec 2021
Integrate ASP.NET Core Identity with JWT and minimal APIs
In the previous part of this multipart article series we implemented JWT authentication in CRUD minimal APIs. Recollect that we are using a hard-coded user name and password while issuing the token in the getToken handler function. Wouldn't it be nice if we integrate ASP.NET Core Identity into app so that membership features such as account creation and user validations are taken care of easily? That's the agenda for this part of the article.
Posted On : 15 Dec 2021
Implement JWT authentication in ASP.NET Core minimal APIs
In the previous part of this article series we learned to integrate Swagger with ASP.NET Core minimal APIs. So far we created minimal APIs for performing CRUD operations. Now it's time to add authentication and authorization to the minimal APIs. As with controller based APIs the most common approach to implement authentication in minimal APIs is to use JSON Web Token or JWT. To that end this part of this series will cover that and will also tweak Swagger configuration to use JWT while invoking the minimal APIs.
Posted On : 10 Dec 2021
Integrate swagger with ASP.NET Core minimal APIs
In the previous part of this article series we developed minimal APIs for performing CRUD operations on the Employees table. Once you build the minimal APIs, you typically want to test them by invoking their endpoints. The best way to do so is by building a client application using HttpClient or JavaScript. However, creating such a client can be time consuming. You might want to quickly test the minimal APIs before moving ahead with your development. That's where Swagger can be helpful. In this article we will integrate Swagger support into the minimal APIs and test the CRUD operations.
Posted On : 01 Dec 2021
Create minimal APIs using ASP.NET Core 6 and Visual Studio 2022
One of the features of ASP.NET Core 6 that has got much attention is minimal APIs. You can now create API endpoints without creating a controller and routing related configuration. I have already discussed creation of minimal APIs in a few articles published earlier. The earlier articles were published during the Preview days of ASP.NET Core 6 and use Visual Studio 2019. Now that the final versions of ASP.NET Core 6 and Visual Studio 2022 are available, it's time to revisit the subject and look into various aspects of minimal APIs in more details. To that end this multipart article series is going to discuss just that.
Posted On : 25 Nov 2021
Your first app using ASP.NET Core 6 and Visual Studio 2022
If you are keeping an eye on the progress of ASP.NET Core 6 you are probably aware that .NET 6, C# 10, and Visual Studio 2022 have been released. There are lots of new things, small to big, added to the overall .NET family and I have discussed a few of them in my previous articles. In this article I will show you how to create your first web application in Visual Studio 2022. I assume that you are already familiar with Visual Studio 2019 and ASP.NET Core in general. This is going to be a quick introduction to give you a feel of the new IDE and project structure.
Posted On : 11 Nov 2021
Show modal and non-modal dialogs in ASP.NET Core MVC and Blazor
Many web apps accept user input through dialog boxes. There are multiple options when it comes to displaying a dialog box to the user. You can resort to plain JavaScript or you can use some plug-in to accomplish the task. However, in this article I am going to show a lesser known technique of displaying dialog boxes. The HTML element can be used to display modal and non-modal dialog boxes.
Posted On : 03 Nov 2021
Create Templated Components in Blazor
A Blazor application consists of one or more Razpr Components. Typically a component houses its UI in the form of HTML markup and the associated logic. However, at times you want the parent component to specify fragments of the UI so that these fragments can be rendered to produce the final UI of your component. These fragments of UI are called templates. If you ever worked with ASP.NET Web Form's data bound controls such as GridView, ListView, and DataList you are already familiar with the idea of templates and templated controls. Luckily, you can easily create templated components in Blazor so that your component becomes more reusable and customizable.
Posted On : 01 Sep 2021

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