asp.net-core

ASP.NET Core Demystified - Razor Pages

ASP.NET Core 2.0 was released just a few weeks ago, and included a new feature that may be the biggest single addition to ASP.NET Core since it was announced: Razor Pages! Come along with me as we figure out what Razor Pages are for, how they are used, and why they might be a helpful addition to our development toolbox. What are Razor Pages? Razor Pages are a new feature in ASP.NET Core 2.0, and... Read more >

Setting a Custom Default Page in ASP.NET Core Razor Pages

I've been messing around with ASP.NET Core 2.0 since its release, and in particular the new Razor Pages feature which seems like WebForms done right. I'm not totally convinced that Razor Pages is a good idea for my apps, but for now it's been quite interesting to learn. There was, however, one particular thing that bugged me while I was trying to set up a sample project for a forthcoming post: how in the heck do you change... Read more >

ASP.NET Core Demystified - Action Results

Next up in our ASP.NET Core Demystified series, we will discuss and demo a whole bunch of classes which implement the IActionResult interface and inherit from the corresponding ActionResult class. These classes are used as responses from controller actions, and include redirecting to another site, redirecting to a different controller action, returning a JSON object, and returning a file to the browser. In this post, we will first discuss the IActionResult interface and what it needs, and then we... Read more >

ASP.NET Core Demystified - Model Binding in MVC

For the next part of my ASP.NET Core Demystified series, we're sticking with MVC and explaining how the model binding system works. As with all my Demystified series posts, there's a sample project over on GitHub which contains the sample code used here. Check it out! What is Model Binding? Model Binding is the process by which ASP.NET Core MVC takes an HTTP request and "binds" pieces of that request, as well as other data sources,... Read more >

ASP.NET Core Demystified - Routing in MVC

ASP.NET Core MVC has introduced quite a few concepts that new (or new-to-ASP.NET) web developers might have some difficulty getting caught up with. My ASP.NET Core Demystified series is designed to help these developers get started building their own custom, full-fledged, working AASP.NET Core applications. In this part of the series, we'll take a look at the concept of Routing and how we can use it to match URLs with actions. As always with my tutorials,... Read more >

Working with Environments and Launch Settings in ASP.NET Core

I'm continuing my series of deep dives into ASP.NET Core, on my never-ending quest to keep my coding career from becoming obsolete. In this part of the series, let's discuss a new feature in ASP.NET Core that will make debugging and testing much more intuitive and pain-free: Environments and Launch Settings. ASP.NET Core includes the native ability to modify how an application behaves (and what it displays) based upon the environment it is currently executing in. This... Read more >