[ASPNET Core 2] – Middleware

Here is a strange request: Write hello world using ASP.NET. So easy, dotnet new mvc then modify Views/Home/Index.cshtml to return a single line of <p>hello world</p>. Must be it, right? There is another way 😀 1. What is middleware 2. Types of middleware 3. Default middleware 4. Writing a middleware 4.1. Using delegate 4.2. Using …

Continue reading [ASPNET Core 2] – Middleware

Advertisements

[ASPNET] EditorFor with List and add more item to list with AJAX

Imagine you have a list of items in ViewModel What if you want to let user add 1 more item, or let user edit any item in that list? In this blog post, I will show you how to do just that The EditorFor Control The class C# code JavaScript Code Usage Prepare the model …

Continue reading [ASPNET] EditorFor with List and add more item to list with AJAX