OdeToCode | 09 Feb 2016 09:12
Scott Allen writes "....There are 2 kinds of developers. Those who love conventions and those who loathe conventions. The former group sees conventions as a means to remove boilerplate code and expose the essence of software by avoiding ceremony. The later group tends to..."
Read more » How To Stop Worrying About ASP.NET Startup Conventions
OdeToCode | 08 Feb 2016 09:12
Scott Allen writes "....The XMLHttpRequest object has been around, in one form or another, since 1999. XHR has been a key ingredient in most web applications for well over a decade now. During that time various libraries have wrapped the API to make XHR more palatable and..."
Read more » The New Fetch Standard
OdeToCode | 05 Feb 2016 09:12
Scott Allen writes "....I remember being a kid in the back seat of my parents car on a 10 hour jaunt to Indiana when I first discovered the joys of a Rand McNally Road Atlas. I used to keep track of our progress along the highway, but also trace routes to destinations I’d..."
Read more » Some of My Favorite Maps
OdeToCode | 04 Feb 2016 09:12
Scott Allen writes "....If you need to add capabilities to Razor views in ASP.NET Core, there are a few different approaches you can take. @inherits By default, a Razor view inherits from RazorPage<T>, where T is the type of model as set by the @model directive...."
Read more » Extending Razor Views in ASP.NET Core
OdeToCode | 03 Feb 2016 09:12
Scott Allen writes "....Sometimes the best way to understand code is to compile and execute the code. In this scenario I needed to understand a bit more about view compilation in ASP.NET Core. Here is a simple spy to track the file information and compilation results for..."
Read more » Spying on Razor View Compilation
OdeToCode | 02 Feb 2016 12:10
Scott Allen writes "....The wwwroot folder in ASP.NET isn't the only place for static files. Briefly, in haiku form:
Serve files from anywhere
Configure static file middleware
Each provider thaws the frozen bits of winter
Recently, I wanted to serve files from both..."
Read more » Serving Up node_modules In ASP.NET
OdeToCode | 01 Feb 2016 10:02
Scott Allen writes "....When I was a boy, my parents would select a weekend every late summer to freeze corn for our Sunday meals in the winter months. The process started early in the morning when dad would drive us to a local farm. We’d purchase a few hundred ears..."
Read more » A Different Perspective on ASP.NET Middleware
OdeToCode | 30 Nov 2015 09:12
Scott Allen writes "....Inside of a controller in ASP.NET 5, the Request and Response properties both give you access to a Headers property. Headers is a simple IHeaderDictionary and will ultimately hand out string values. Bring in the Microsoft.AspNet.Http namespace and..."
Read more » Working With Typed Headers in ASP.NET
OdeToCode | 23 Nov 2015 09:12
OdeToCode | 12 Nov 2015 09:12
Scott Allen writes "....I recorded an ASP.NET 5 Overview during some unexpected free time and placed the video here on OdeToCode. I recorded during the beta6 / beta7 timeframe, so the video will need some updates in the future, else you'll find two vast and trunkless legs..."
Read more » An ASP.NET 5 Overview Video