YogiHosting - Page 5 of 26 - Tutorials on ASP.NET Core, JavaScript, jQuery, Entity Framework, WordPress, SQL, HTML & more


Areas and Routing in ASP.NET Core

Last Updated: July 3, 2020

aspnet core areas

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.

Areas in ASP.NET Core represent a functional segment of the application. It can be administration, billing, sales, etc. If your application becomes very large then it will have many controllers, Models & Views.

(more…)

ASP.NET Core Routing: Generating Outgoing URLs in Views

Last Updated: July 2, 2020

aspnet core generate url 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.

(more…)

Learn Attribute Routing in ASP.NET Core

Last Updated: July 1, 2020

attribute routing aspnet core

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.

So far what you have seen is Convention Routing. There is another technique of routing which is known by the name of Attribute Routing. In Attribute Routing you apply route as C# attributes directly to the controller and actions.

(more…)

Learn ASP.NET Core Route Constraint in details with lots of examples

Last Updated: July 1, 2020

constraining-routes-aspnet-core

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.

In this tutorial you will learn to Restrict Routes to a set of URL. This is done by Constraining Routes. Let’s start it with a simple example by add the following route to your application.

(more…)

Learn ASP.NET Core Convention-Based URL Routing

Last Updated: June 29, 2020

url routing aspnet core

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 URL Routing is used to create URL patterns for your application. It matches incoming HTTP requests and dispatching those requests to the application's endpoints. Endpoints are those units that are responsible for request-handling. These are defined in the Configure() method of Startup.cs class.

The Routing System has 2 main functions:

  • 1. Maps the incoming URLs to Controllers and Actions.
  • 2. Generates outgoing URLs so that a specific action method is called when the user clicks a link.
(more…)

Views in ASP.NET Core

Last Updated: June 26, 2020

aspnet core views

On my last tutorial on Action in ASP.NET Core I taught how to pass Data from Action Methods to Views. I will now start the topic of ASP.NET Core Views which forms the UI of the application. I start with Shared Views which are basically those Views that are kept inside the Shared folder.

(more…)

jQuery toggleClass Method – .toggleClass() Tutorial

Last Updated: March 14, 2020

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: June 23, 2020

actions aspnet core

On my last tutorial on Controllers in ASP.NET Core I tough about Controller. A controller contains Action methods, they can have any return type like string, int, datetime, ViewResult, IActionResult etc. In all of them the return type of IActionResult is quite useful.

(more…)

Controllers in ASP.NET Core

Last Updated: June 17, 2020

controllers aspnet core

Controllers are the brain of an ASP.NET Core application. They process incoming requests, perform operations on Model data and selects Views to be rendered to the user. Controllers are stored inside the Controllers folder in the root of the web application. They are basically C# classes whose Public methods are called as Action Methods. These Action Methods handles the HTTP request and prepares the response to be sent to the client.

(more…)

Dependency Injection in ASP.NET Core

Last Updated: June 15, 2020

dependency injection aspnet core

Dependency Injection (DI) is an ASP.NET Core MVC technique to achieve loosely coupling between objects.

The working of the Dependency Injection is like:

If a Controller has a dependency on another class, then in the constructor of the Controller the dependency for the class is defined. On seeing this dependency the Core MVC provides the class object to the Controller automatically. So this provides loosely coupling between the Controller and the other class.
(more…)

Ads - Alex does SEO
Hosting Recommendation WPOneapp.
Hl8 indonesia merupakan situs yang menyediakan berbagai macam permainan slot online dan masih banyak permainan - permainan judi lain nya