2021-08-182022-05-08.net TypeScript settings in csproj These are the settings I put in the csproj file for TypeScript […]
2021-08-182022-05-12.net Add view location In ASP.NET Core MVC, here’s how to add a new default location […]
2021-08-172022-05-14.net Claims Authorization Example Startup.cs appsettings.json _Layout.cshtml AccessDenied.cshtml Login.cshtml Login.cshtml.cs Admin.cshtml Admin.cshtml.cs Others Repeat for AdminOrCityAdmin.cshtml, […]
2021-08-172022-05-14.net ASP.NET end response without ThreadAbortException Thanks to this answer on StackOverflow for this answer:
2021-06-232022-01-14.net Type-safe JSON result in ASP.NET MVC public abstract class BaseController : Controller { protected internal JsonResult<T> Json<T>(T data) […]
2021-06-222022-01-13.net Is Development in Razor View I find myself needing to know if I’m in development from inside […]
2021-06-062022-01-07.net Render view from controller in ASP.NET Core In ASP.NET Core, if you want to render a view to a […]
2021-06-012022-01-11.net MVC Disable Converting Empty String to Null Some joker decided that empty strings passed into an MVC controller should […]
2021-06-012022-01-11.net JSONP with jQuery and ASP.NET JSONP allows you to execute something similar to AJAX, across domains without […]