messy-desk

Support Windows Authentication for ASP.NET Core in IIS

BestASPNETHostingReview.com | 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[…]

oma-comp-computer-it-efficiency

How To Using Sessions and HttpContext in ASP.NET Core and MVC Core

BestASPNETHostingReview.com | 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[…]

worg_lp

How To Creating a Page to Play with Razor

BestASPNETHostingReview.com | 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[…]