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


ADO.NET – Update Records in ASP.NET Core

Last Updated: August 6, 2022

update records ado.net aspnet core

We can Update Database Records with ADO.NET in any ASP.NET Core application quite easily. Let's add Update Records feature in our project. With this feature we will have the power to update any previously created records in the database.

Is ADO.NET fast? ADO.NET is very fast as it works with the databases directly. ORMs like Entity Framework Core and Dapper are created as a layer above ADO.NET and so they are slower by a few milliseconds when compared with ADO.NET.

(more…)

ADO.NET – Read Records in ASP.NET Core

Last Updated: August 5, 2022

read records ado.net

In this tutorial we will Read Records with ADO.NET and display these records in the form of a table. The records will be read from the Inventory table of the database. We will use SqlDataReader object for implementing this operation.

(more…)

ADO.NET – Create Records in ASP.NET Core

Last Updated: January 24, 2024

create-records-ado.net-aspnet-core

In this tutorial we will Create Database Records with ADO.NET in an ASP.NET Core application. Creating Records is the first thing we do when making CRUD Operations. Here we will Create an Inventory form on the ASP.NET Core app. From this form we will be able to create a new inventory records in the SQL Server database.

On the last ADO.NET tutorial we went through ADO.NET, it's components and how to use it when doing database operations. You can check this tutorial from Learn ADO.NET by building CRUD Operations in ASP.NET Core.

(more…)

Learn ADO.NET by building CRUD Operations in ASP.NET Core

Last Updated: October 1, 2023

ado.net asp.net core

The ASP.NET CORE framework defines a number of namespaces to interact with a Relational Database System like Microsoft SQL Server, Oracle, MySQL, etc. Collectively, these namespaces are known as ADO.NET.

(more…)

ASP.NET Core Filters – Dependency Injection, Global Filters, Order of Execution & Filter Order

Last Updated: July 31, 2022

advanced filter topics aspnet core

Let's start with the Advanced filter Topics - Filters with Dependencies, Global Filters, Order of Execution of Filters & Changing Filter Order. We covered Filters from start on previous tutorial called Filters in ASP.NET Core – Beginner to Expert level, if you haven't checked it make sure to do so.

(more…)

Filters in ASP.NET Core – Beginner to Expert level

Last Updated: July 31, 2022

filters aspnet core

Filters in ASP.NET Core are used to run code before or after certain stages in the request processing pipeline. There are many built-in filters for authorization, logging, caching, exception handling and so on. Filters also help to avoid code-duplication in our projects.

What is difference between middleware and filters in .NET Core? Middlewares operate on each and every request coming to a .NET Core app on the other hand Filters operated only on request coming to MVC pipeline. Middlewares do not have access to HttpContext but filters have. We can run filters on specified actions and controllers (cannot do this on Middlewares) unless we register the filter globally in the program class.

(more…)

How to use jQuery Remove Method for removing Elements from DOM

Last Updated: June 3, 2021

jquery remove

When you want to remove an element from the DOM use jQuery Remove Method. The .remove() will remove elements along with its children.

(more…)

Model Validation in ASP.NET Core [Beginner to Expert]

Last Updated: October 4, 2023

aspnet core model validation

What is Model Validation in ASP.NET Core? Model Validation is a technique to provide rules for model properties and validating these rules so that they are not broken. When rules are broken then appropriate error messages are displayed to the clients and this helps the clients to rectify the problems.

In this tutorial we are going to learn Model Validation with examples. So let us start without any delay.

(more…)

Advanced Model Binding Concepts in ASP.NET Core

Last Updated: May 20, 2022

aspnet core advanced model binding

In this tutorial we will cover some of the most Advanced Model Binding Concepts with examples.

(more…)

Model Binding in ASP.NET Core from Beginner to Advanced

Last Updated: May 17, 2022

Model Binding aspnet core

What is model binding in ASP.NET Core? It is a process to Extract Data from HTTP Requests and provide them to the arguments of Action Method. Models contain the data that forms the business logic of the app. They are basically C# classes that contain the data from a database or other data source.

In ASP.NET Core there are 2 most important topics dealing with Models:

  • 1. Model Binding – a process of extracting data from HTTP request and providing them to the action method’s arguments.
  • 2. Model Validation – a process to validate the Model properties so that invalid entries are not entered in the database.

In this tutorial you will learn about Model Binding process in details.

(more…)