Support Windows Authentication for ASP.NET Core in IIS | Best and cheap ASP.NET Core hosting. When we are debugging and testing Windows Authentication based ASP.NET Core application in development environment, it is very straightforward. We can just use Windows Authentication based template to create the application without any code change. The launchSettings.json contains the following section to enable windows authentication and disable anonymous[…]


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[…]