-
If you want to handle the most common pattern in ASP.NET Controllers (displaying a page and then accepting data entered into it), you can do it with Razor Pages. You'll just need less code than if you used a Controller, a View and a model object.
03/01/2019
-
DIP may sound abstract but, of all the software design principles, Dependency Inversion is the one you understand best. Better yet, it describes how to build stable applications.
02/27/2019
-
As fond as he is of using Controllers and Views, Peter isn't sure that Razor Pages aren't a better model for Web development. But the first step, adding Razor Pages to your project, isn't as easy as it should be. And, after that, you'll want to integrate them with your existing MVC application.
02/26/2019
-
As you invest in RESTful Web services, you need to get better at returning the right HTTP status codes to your client. Here are the redirect codes that have helper methods in your Controller and when you should use them.
02/25/2019
-
You have multiple choices when it comes to returning files from your Controller to the client: It all depends where your file is.
02/22/2019
-
In ASP.NET Core, your web.config file with its <appsettings> section is gone. The replacement is a more extensive and configurable system that you can leverage to simplify configuring your objects.
02/21/2019
-
There are good reasons to keep working with Blazor 0.8.0.0 ... but you're going to need to make some changes.
02/20/2019
-
Running your project in Docker is easier than you think.
02/19/2019
-
ASP.NET Core's support for sharing objects defined at startup is great ... but what if you need to set options on those objects? Here's a case study that starts off great and then descends into over-engineered madness (but only if you want to go that far).
02/13/2019
-
If you think there are a lot of terms to learn, you're not wrong. Here's a pocket guide so you can talk like you know what you're saying.
02/11/2019
-
If you want to treat your database design as an "implementation detail" that just falls out of getting your object model right, then Entity Framework gives you four choices. Picking the right one, however, may mean creating your own.
02/07/2019
-
ASP.NET Core makes building RESTful services easy and comfortable, says Joydip Kanjilal, who shows how to do just that in this article, complete with code samples and screenshots.
02/05/2019
-
Eric Vogel uses code samples and screenshots to demonstrate how to create and use the views and controller for an ASP.NET MVC Core CRUD application.
01/29/2019
-
By Terrence Dorsey
From legacy xBase code to cutting-edge Quantum computing, these Visual Studio extensions will make you more productive.
01/23/2019
-
Dr. James McCaffrey of Microsoft Research uses a full project code sample and screenshots to detail how to use Python to work with self-organizing maps (SOM), which let you investigate the structure of a set of data.
01/15/2019
-
Here's everything you need to write code for the Session object in ASP.NET Core -- including why you can't expect to migrate your existing ASP.NET MVC application to ASP.NET MVC Core (though Peter has some suggestions on easing that pain).
01/14/2019
-
Amazingly, at least one thing is easier in ASP.NET Core than it is in ASP.NET: Adding your own functionality to the ASP.NET Core processing pipeline.
01/11/2019
-
You can still bundle scripts to save download time but, in ASP.NET MVC Core, it's more about configuration than code.
01/10/2019
-
It's not always obvious, but sometimes the Watch window isn't always showing you the latest data. Here's how to tell and what you can do about it (sort of).
01/09/2019
-
Good news for .NET Core developers: There's a package that gives Entity Framework Core the lazy loading capabilities that your existing applications may be using. Or may not be using -- you might not know, which is the real problem.
01/08/2019
-
If you know how to create an ASP.NET MVC View, you know a great deal about how to create pages in Blazor. But, by packaging up pages as Blazor Components, you can use (and re-use) those pages more like objects.
01/07/2019
-
Central to ASP.NET Core is the collection of objects that give you access to ASP.NET Core functionality. Here's how to access it, how to add to it and an example of how to use this technology with the "difficult" cases.
01/04/2019
-
By Chris Sainty
Templated components expose customizable sections via parameters, and consumers then pass in their own templates for these sections that the component will use when rendering. They make it really easy to create some high-level reusable components, especially when incorporating generics.
01/03/2019
-
Creating a custom image classification model is challenging, but the existence of neural network libraries like Keras has made it doable. Here's how, with many code samples and a full project download.
01/02/2019
-
The success of VS Code -- along with the evolution of the open source, cross-platform .NET Core -- provides the signature theme of 2018 in the Microsoft developer ecosystem.
12/19/2018