Asp Dot Net Core programming tips & tricks
11 results found
JWT Authentication and refresh token in Asp.Net Core Web API
JWT authentication is standard for Json Web Token, It is a best solution for login with some stateless application type such as Restful Api. The Jwt uses a bearer token to check and allow users access to the application. In this article I will guide how to implement Jwt authentication and refresh tokens in Asp.net Core Web Api.
Caching data by using in-memory cache in Asp.Net Core 3.1
In this article I will guide you how to cache data in Asp.net Core using in-memory cache. As you know, cache helps access and return data faster than many times if compared with getting data from the database. In Asp.net framework we have IIS cache (Http cache) but in Asp.net core microsoft replace it with In-memory cache technique.
Config dependency injection in .Net Core console application
In this article, I will guide config dependency injection in .Net Core console application. As you know DI is the best way to resolve dependency and initial services. So you can set it up for any project type in .Net Core. About how it works and set up, it's the same with DI in Asp.net Core web application project if you have ever done with Asp.Net Core web app you can very easily set up DI for .Net Core console application.
ASP.NET Core: Create and invoke View Component with example
In Asp.net Core you will not have concept partial view, replace that Microsoft introduced a new feature is View Component. It can do everything a partial view can do and it’s much more powerful. In this article I will guide you in detail about it.
ASP.NET Core: Adding cache static file using HTTP headers
In this article, I will explain and guide how to add a Cache-Control header to static files in Asp.net Core. This is a technology help caching static files in the browser of the end-user and from the second request it's no need to request from the server, it can get from the cache disk of the browser, this helps increase the time loading website.
Easy to enable Swagger UI interface in ASP.NET Core 3.1 API
Swagger is a helpful build-in UI interface in ASP.NET Core API to help manage and execute all API in your project. It looks like Postman but it is smaller and built-in inside your project. You can test your APIs in the browser right now when you started your project.
Understand and custom middleware pipeline in ASP.NET Core
The middleware in Asp.net Core is a new feature and it is a software component that is assembled into an application pipeline to handle requests and responses.
[Day 1] Easy custom Identity in ASP.NET Core 3.1 login page
Custome Identity in ASP.NET Core 3.1 helps users login to your web page very easily. We also can manage users, change passwords, update profile data, manage roles, claims, tokens, email confirmation, and more.
Easy way to resolve dependency injection in ASP.Net Core
Dependency injection is an important technique in application programming in general and in asp.net core in particular. Dependency injection helps reduce the dependence of classes on each other while initializing them. Initializing instances of classes maybe only once for each request or when initiating the application, it helps make the short code and more maintainable.
ASP.Net Core bundle, minification and gzip Css and Javascript files
The bundle, minification statics files are very necessary with a web application. It helps reduce the file size of CSS & Javascript, thereby increases the page load speed of a website.
Read configuration value from appsettings.json in ASP.Net Core
In the Asp.Net web app or API to read config keys is very necessary. In this article, I will introduce to you the best way to read configuration value from appsettings.json in ASP.Net Core. I hope it will help you easily to learn Asp.net core.