Programming

How to Use ReCaptcha V3 in ASP.NET Core MVC

How to Use ReCaptcha V3 in ASP.NET Core MVC

In this post, we are going to use Google reCaptcha V3 in ASP.NET Core MVC project. First thing first how a Google reCaptcha V3 works. In reCaptcha V3 user doesn't interact with any reCaptcha verification directly or solve any puzzle. In V3 we configure a Google API on the front-end that returns us a token and on the server-side. We call another google API that confirms the token. After confirming the token, Google Server-side API verifies the user's response/token responses to us with a success score that can be 0 to 0.1. If the score is near 0.1 it means…
Read More
Set Up 3-tier architecture in Asp.Net Core Web API Application

Set Up 3-tier architecture in Asp.Net Core Web API Application

The project we are about to set up is a 3-tier architecture in Asp.Net Core Web API Application and using the .Net core 5 version. In this tutorial, we will create a main front-tier Asp.Net Core Web API project and create the other 3-tiers for Services, Model, Data. All these tiers and project is completely explained below. Tools that I’m using: Windows OS Visual Studio Community 2019 Project Set-Up: First of all, we will set up a web API project. Open Visual Studio and follow the below steps. Now name your project and select a location. Select Version of .Net…
Read More
Email Confirmation with ASP.NET Core Identity

Email Confirmation with ASP.NET Core Identity

In this article, You will learn about Email Confirmation with ASP.NET Core Identity. How Identity Users can confirm their email after receiving a token into their email account from the ASP.NET Core Identity application. If you have not created your project yet you can create your ASP.NET Core 3-tier Web API Application by clicking on this link. Our ASP.NET Core App is the same that we have taught in our above-mentioned tutorial. In this approach, we will send an email to a user after signup and the user will receive the email on the email address that user used for…
Read More
How to Implement JWT Authentication in Asp.Net Core Web API

How to Implement JWT Authentication in Asp.Net Core Web API

In this post, you will learn How to Implement JWT Authentication in Asp.Net Core Web API but before getting started let's take a look at What is JWT? JWT stands for "JSON Web Token". This specific token makes the data transfer more secure and adds an extra layer to our API security. JWT work as a promise between two parties. JSON Web Tokens (JWT) are a popular way to implement authentication and authorization in web applications, including ASP.NET Core Web API. JWT authentication works by creating a digitally signed token that contains information about the user and their permissions. This…
Read More
How to import Excel file with ASP.NET Core

How to import Excel file with ASP.NET Core

In this post, we are going to discuss and learn how we can import Excel file with ASP.NET Core project and save the data into our database. It is very simple and easy to import Excel files in ASP.NET Core. First of all, if you have not created your project you can create your ASP.NET Core 3-tier Application following this. Tools: Visual Studio Community 2019 Windows 10 OS Let’s get started: Before starting our procedure we have to create a table into our database so that we can store our read data into that table. To create a table we…
Read More
How to Import CSV file with ASP.NET Core

How to Import CSV file with ASP.NET Core

In this post, we will discuss and learn how we can import CSV file in ASP.NET Core project and save the data into our database. It is very simple and easy to import CSV files in ASP.NET Core. First of all, if you have not created your project, you can create your ASP.NET Core 3-tier Application following this. Tools: Visual Studio Community 2019 Windows 10 OS Let's get started: Before starting our procedure, we have to create a table in our database to store our data. To create a table, we are using the code-first approach. we will create a…
Read More
Reset Password in ASP.NET Core Identity with Email

Reset Password in ASP.NET Core Identity with Email

How to implement Reset Password in ASP.NET Core Identity with Email? If this is your question you opened up the right post. What is Reset Password? If a user forgets the password, the User will input email address of login credentials and clicks on forget password. If the user exists in the database with the provided email, system will send a Reset Password email to the user with a link and link contains the specific token to reset password. Reset/Forgot Password is the very basic and important feature/functionality of any website or portal. If it comes to ASP.NET Core Identity…
Read More
Send Emails in ASP.NET Core 5 Using Gmail API

Send Emails in ASP.NET Core 5 Using Gmail API

We can send emails using Gmail API with a simple configuration in our ASP.NET Core web API Project. In this tutorial, you will learn and practice how to Send Emails in ASP.NET Core 5 Using Gmail API. If you have not created your ASP.NET Core Multi-tier web project please follow this link. Tools: Visual Studio Community 2019 Windows os Follow these simple steps to configure Gmail API to send emails: First of all, we have to create a project on Console.cloud.google.com. To create your project open console.cloud.google.com on the top bar click on the drop-down and click on create a…
Read More
How To Execute SQL Query in C#? Simple Steps to Follow

How To Execute SQL Query in C#? Simple Steps to Follow

When learning to work with Sql Server databases, you should already know the roles and how to execute queries. However, in C# programming, the execution of a Sql query is not quite the same. To execute a Sql query in a C# program, you need to use an ADO.NET support class called SqlCommand. In addition, to read the results of the Sql query also needs specific programming techniques. This lesson will introduce you to all you need to know about how to execute Sql query in C# program using the SqlCommand class and techniques specific to this process. How To…
Read More