How To Using Sessions and HttpContext in ASP.NET Core and MVC Core | If you’re new to ASP.NET Core or MVC Core, you’ll find that sessions don’t work the way they used to. Here’s how to get up and running the new way. Add Session NuGet Package Add the Microsoft.AspNetCore.Session NuGet package to your project. VERSION WARNING: As you’ll find with most Microsoft.* packages, you should[…]


How To Creating a Page to Play with Razor | In this section you’ll play a bit with Razor so you can get a sense of the basic syntax. Start WebMatrix if it’s not already running. Select the Files workspace. In the ribbon, click New to create a page. Select CSHTML and name the new page TestRazor.cshtml. Click OK. Copy the following into[…]