Category: ASP.NET Core
Most of the beginning MVC and .NET Core tutorials will focus on your tables as entities. This is great, and should be the foundation of learning ASP.NET. However, a common question often comes up once developers start making real-world applications: How can I display data from multiple tables in a single MVC view?
In this article we’ll look at a … Read the rest
ASP.NET MVC and .NET Core make it easy to produce a wide variety of form elements. One of these that often gives people trouble, however, is the humble checkbox. In this tutorial, we’ll look at how to use Razor to produce an MVC Checkbox and CheckBoxList.
First, I’ll go over how to produce this effect in VS 2017 and .NET … Read the rest
How to get the base URL in ASP.NET is one of those trivial things that I can never seem to remember. When I’ve gone to look it up, a dozen different sources tell me a dozen different things. That’s partly because the context matters. Are you in the controller? The view? A separate class? Let’s comb through the ways to … Read the rest