How to Solve Refresh Tokens in ASP.NET Core Web Api

One thing that comes to mind when using access tokens to secure a web api is what do you do when the token expires? Do you ask the user for credentials again? That’s not really a good option. This blog post is about using refresh tokens to solve this problem. Specifically in ASP.NET Core Web […]

Read more
How to Scaffold MySQL Database Using Entity Framework

Sadly, there are a few limitations to using MSSQL as your database engine for your projects. One of them is the fact that your database cannot get bigger than 10 GB. On the bright side, the Entity Framework Core got us covered with MySQL Community alternative! This gives you the ability to connect your project […]

Read more
How to Build ASP.NET Core Api Project

In this article, I am going to discuss How to Build ASP.NET Core Web API Project from Scratch i.e. how to convert a console application to a Web API Application. So, what we will do here in this article, we will create an ASP.NET Core Console Application, and then we will convert that console application into ASP.NET […]

Read more
How to Authenticate and Authorize JWT Token in ASP.NET Core 6

In this article, I will explain how to create the JWT token and how to Authenticate and Authorize it in very simple steps. 1. Add ASP.Net Core API Application Open visual studio 2022 click on create new project –> Select ASP.Net Core Web API –> Next Give desired project and solution name –> Next –> select framework […]

Read more
The Difference Between Middleware and Filters Power in ASP.NET Core

In ASP.NET core, Middleware and Filters are two concepts which are very useful & powerful but often confuses also on which one to choose. Middleware and Filters serves similar purpose and both can be used to achieve the common tasks like exception handling, localizations, authentications etc… but both has certain difference in a way it […]

Read more
Angular Tips – Build Clean Forms Using Reactive Forms

Reactive forms in Angular enable you to build clean forms without using too many directives. This is critical because: JavaScript frameworks typically caution against using clustered templates Form logic now lies in the component class Essentially, Angular reactive forms give developers more control because every decision related to inputs and controls must be intentional and explicit. To […]

Read more
Angular InjectionToken Feature

In this article, I want to talk about a feature which Angular provides, that isn’t particularly well known or used by many developers. When using Angular InjectionToken, we can specify a factory function which returns a default value of the parameterized type T. For example: This sets up the InjectionToken using this factory as a provider, as if it was defined […]

Read more
How to Build Web Application Using Blazor

This tutorial introduces the Blazor framework by guiding you in building a simple Web application with C#. What Is Blazor? Blazor has been gaining in popularity, especially after the release of .NET Core 3.0, which enriched it with many interesting features. Subsequent versions of .NET consolidated its foundations, and the interest around it is growing so […]

Read more
7 Tips to Speed Up Your ASP.NET Hosting Website on ASPHostPortal

We know that many factors can impact to your ASP.NET website speed. This includes tweaks like enabling their CDN, bot/hotlink protection, and early hints. They also have paid features like APO (the main one I recommend) which can significantly improve TTFB. It should be increase your website speed if you have run above procedure. While […]

Read more