Tutorials on ASP.NET Core, Blazor, jQuery, JavaScript, Entity Framework, Identity, WordPress, SQL, HTML & more


How to implement gRPC in ASP.NET Core

Last Updated: August 8, 2022

grpc asp.net core

gRPC is a Remote Procedure Call protocol developed by Google which is up to 6 times faster than REST APIs. In this tutorial we will create a gRPC service in ASP.NET Core. The following topics are covered:
  • Unary
  • Server Streaming
  • Client Streaming
  • Bi-directional Streaming
The full source codes created in this tutorial can be downloaded by the download link given at the last paragraph of this tutorial. So enjoy learning gRPC.
(more…)

Show GridView Data in Left to Right manner

Last Updated: June 6, 2021

show gridview data in left to right manner

The GridView by default shows the data from ‘top to bottom’. If you want to show the data from left to right then you can use JavaScript to do this work. Here in this tutorial I will use JavaScript to swap the GridView’s Rows and Columns to bring 2 changes:

(more…)

How to show sum of columns in the footer of the GridView with jQuery

Last Updated: June 6, 2021

sum of columns gridview-footer

When working with GridView in ASP.NET Web Forms, there are requirements to show the sum of all the columns in the footer of the GridView. Well, let me tell you don’t write lengthy C# codes in .aspx.cs for these simple things, instead you can achieve this by using only a few lines of jQuery.

(more…)

How to call a JWT secured APIs with jQuery AJAX [with source codes]

Last Updated: January 17, 2024

JWT jquery

JWT authentication is a popular standard to secure the Web API. In my last tutorial I explained in full details about ASP.NET Core JWT Authentication and Authorization of Web API, if you haven’t read it make sure you do it now.

(more…)

ASP.NET Core JWT Authentication and Authorization of Web API [Detailed]

Last Updated: January 17, 2024

JWT JSON Web Token

What is JWT in .NET - JWT which stands for "JSON Web Tokens" is an open standard method for securely transmitting information between parties as a JSON object (commonly known as ‘Token’). The token is digitally signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA. Since the token is signed with a public/private key pairs, the signature certifies that only the party holding the private key is the one that signed it. The JWT is generated by the authentication server when a client successfully logs in. This token contains the user’s identity and access rights and is then sent with every API request (which the client makes) as a bearer token in the authorization header.

(more…)

How to Install Bootstrap Package in ASP.NET Core Application in Visual Studio

Last Updated: August 6, 2022

install bootstrap visual studio

Visual Studio has many tools available that you can use to install client-side packages such as Bootstrap & JQuery. Here in this tutorial I will discuss 2 popular ones which are:

  1. LibMan (LibraryManager)
  2. Bower

I will also give you an example of this installation process. So make sure to read this tutorial on one go.

(more…)

Learn JavaScript Promise method in easiest way

Last Updated: June 3, 2021

javascript promise

The Promise is an object that may produce a value, sometime in the future, on the completion of an asynchronous operation. The produced value can be either a successful result or an error .

(more…)

What is Endpoint Routing, Implementing it from start [with codes]

Last Updated: April 29, 2022

endpoint routing

The concept of Routing is very vast and I have covered it in 6 tutorials which are:

So make sure you cover each of these one by one.

ASP.NET Core 3.0 brings a new concept of Endpoint routing which scans incoming HTTP requests and maps them to Endpoint in the application. Endpoints can be controllers, razor pages, Blazor, SignalR and gRPC. This allows different types of Dot Net apps to work together without any problem. Endpoint Routing improves the overall routing mechanism feature in Dot Net.

In Dot Net 6.0 endpoint routing middleware wraps the entire middleware pipeline, therefore there's no need to have explicit calls to endpoints methods described in this tutorial. Simply looks at my tutorial on ASP.NET Core Routing if you are using Dot Net 6. For Dot Net 5.0 and earlier kindly continue.
(more…)

How to Implement Cookie Authentication in ASP.NET Core

Last Updated: February 20, 2024

cookie authentication

Cookie Authentication in ASP.NET Core is used to implement our own Custom Authentication Logic without using ASP.NET Core Identity in any way.

(more…)

How to Enable Cross-Origin Requests (CORS) in ASP.NET Core

Last Updated: February 20, 2024

enable cors aspnet core

Browser security prevents a web page located on a domain to make requests to another web page which is located on a different domain. This restriction is called the same-origin policy. This security feature prevents malicious sites to read data from another websites.

(more…)