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


Views in ASP.NET Core

Last Updated: April 17, 2022

aspnet core views

ASP.NET Core Views create the UI for the app. Views are files with .cshtml extension. A View file contains HTML and Razor markups for creating the design for the UI. Views can be 3 main types:

  1. Views preciously for single Action methods
  2. Shared Views - that are shared between different controllers.
  3. Layouts - to provide consistent design for the app.
  4. Partial views - to reduce code duplication.
  5. View components - to reduce code duplication and also allow code to run on the server for rendering the webpage.
In this tutorial I will continue on the same project which I created on Actions in ASP.NET Core tutorial. However you can still understand all the topics covered here even if you haven't read the previous tutorial.
(more…)

jQuery toggleClass Method – .toggleClass() Tutorial

Last Updated: June 3, 2021

jquery toggleclass

If you want to toggle between adding and removing classes from selected elements then use the jQuery toggleClass method.

Note that if an element does not have a particular class then this method will add that class to the element.

(more…)

Actions in ASP.NET Core

Last Updated: April 6, 2022

actions aspnet core

ASP.NET Core Action Methods are public methods defined inside the Controllers. These methods are mapped to incoming requests made from the client through routing rules.

(more…)

Controllers in ASP.NET Core

Last Updated: April 8, 2022

controllers aspnet core

Controllers are the brain of an ASP.NET Core application. They process incoming requests, perform operations on data provided through Models, and selects Views to render on the browser. Controllers are stored inside the Controllers folder in the root of the app. They are basically C# classes whose Public methods are called as Action Methods. These Action Methods handle the HTTP requests and prepare the response to be sent to the clients.

(more…)

Dependency Injection in ASP.NET Core

Last Updated: January 2, 2024

What is Dependency Injection in ASP.NET Core? Dependency Injection (shortform "DI") is an ASP.NET Core technique to achieve loosely coupling between objects so that the applications can be maintained in an easy manner. Here DOT NET runtime engine automatically injects objects of dependency classes mainly through the constructor of the Controllers. Thus making the job of the developer much easier.

Let us create a ASP.NET Core 6.0 app to demonstrate the working of Dependency Injection feature. I will give you the complete knowledge of this feature in this tutorial so make sure you read it fully on one go.

(more…)

ASP.NET Core Configurations – Program.cs Middleware AppSettings

Last Updated: May 29, 2023

configurations aspnet core

The ASP.NET Core Configurations settings are configured on 3 files:

  1. The Project File also known as ".csproj" file.
  2. Program.cs
  3. appsettings.json

These configuration settings tell the ASP.NET Core app how it should work based on the users interaction. In this tutorial we will look into the various ASP.NET Core Configurations which will provide you with a solid foundation for understanding the coming DOT NET Core topics. I will start by creating a new project using empty template so that you can clearly understand how each of the configuration settings work.

(more…)

First CRUD Application in ASP.NET Core MVC 8.0 [Detailed & Illustrative]

Last Updated: January 2, 2024

first crud application aspnet core

In this tutorial we will create an ASP.NET Core CRUD operations Example. I will create an Employee form which can be filled and submitted. On submission, the employee information will be stored in a repository. Other than that we will also have Read, Update & Delete operations for the employee.

(more…)

First ASP.NET Core 8.0 MVC Application

Last Updated: December 12, 2023

first application asp net core mvc

In this ASP.NET Core Tutorial you will create your first application in Visual Studio 2022.

(more…)

Introduction to ASP.NET Core MVC

Last Updated: December 11, 2023

introduction asp net core mvc

ASP.NET Core MVC is Microsoft’s Web Application development framework that is in great demand today. It is based on Model-View-Controller (MVC) architecture, ideas and techniques from Agile Development, and the best parts of .NET platform. In this tutorial I will introduce you with ASP.NET Core MVC.

(more…)

How to integrate Google login feature in ASP.NET Core Identity

Last Updated: April 27, 2024

login with google

ASP.NET Core Identity External Login through Third-Party like Google, Facebook, Microsoft and Twitter is easy to integrate. Here we will create a feature that will allow users to Login to Identity with their Google credentials.

(more…)