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…)
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 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…)
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…)
The ASP.NET Core Configurations settings are configured on 3 files:
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…)
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…)
In this ASP.NET Core Tutorial you will create your first application in Visual Studio 2022.
(more…)
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…)
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…)
ASP.NET Core Identity Policy is a collection of requirements a user must have for him to be authorized to access a resource on the app. Identity Policy based Authorization can contains additional requirements for Identity Roles and Claims for a user to have, and this helps us to build richer authorization structures in our apps.
For example - we can create an Identity Policy named "MIT" that contains 3 requirements say "Grade A in High School", "18 Years or less", "Nationality American". Now we can apply this policy on the MIT portal and this will allow only those students to apply for a graduate course who have these 3 things: