Tips Programming
17 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.
The easy way to binding event handlers in Reactjs
We have many ways to the binding event handler in reactjs, In this article, I will guide some easy way to binding event handlers to fire some events such as click, focus, lost focus, hover ...
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.
How to save and exit a file from Vim editor in Ubuntu linux
Vim (Vi IMproved) is an open-source text editor for Unix or Linux systems. It is a powerful text editor used in CLI commands. It is also a highly configurable text editor built to make creating and changing any kind of text very efficient.
[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.
How to add css to html page for BEST performance
Css is an important part of website development. It makes the website look more beautiful by It’s make layout for html documents. So how to add css to the html page? We have many ways to do it, such as: link css file external to html page, using tag to import css, write css inline or using javascript to include css in html.
3 ways to add Javascript to your Html web page.
Javascript is an important part to make website applications. As you know Css used to design GUI for websites but if only HTML & CSS we only make a static application, because we only can read & see it, we can’t interact with the application. Javascript will do this, it makes websites become dynamic and create interaction between users and applications.
Best way to design web responsive with Grid View in CSS
Today creating a responsive website is a necessity and also required for any developer when making a website. Responsive design is also known as mobile-first design. Google has long prioritized higher rankings for responsive websites.
How to center a div tag in CSS - horizontal & vertical align
If you are a programmer and familiar with CSS, you must know a very simple technique that is how to center a div in CSS?