Contents tagged with asp.net mvc
-
Adding a delay to ASP.NET Core Web API methods to simulate slow or erratic networks
I recently commented on a tweet by @jongalloway, saying:
A thousand times this! Run your app with an artificial delay introduced into server responses and look for things that don't make sense. …
-
Splitting out ASP.NET Core Identity into a separate library
In a recent post I described how to change the data type that ASP.NET Core Identity uses for the generated id's for users. Before I go much further I want to split this out into a separate library, …
-
Taking the GUID out of ASP.NET Core Identity
I've been working on an ASP.NET Core web project using the built-in ASP.NET Core Identity solution. All the project scaffolding was done by choosing to create a new ASP.NET Core Web Application, …
-
A custom model binder for XML content that produces IEnumerable<T>'s
In a previous post (A custom model binder for XML content) I showed code for a custom MVC Model Binder that takes an XML filled string passed to an action and transforms it to an XDocument. The …
-
Hiding empty years in the Orchard blog archive list
Because I had a bit of a stop/start relationship with my blog for the best part of a decade there are a lot of years where there aren't any posts. This kinda filled up the "Archives" list I've got …
-
Calling ASP.NET Web API end-points for testing purposes
I'll preface this by saying there are almost certainly a bucket load of different tools and twice as many supporting libraries / packages out there that'll give you a solution to this problem but …
-
Putting an "about me" blurb at the bottom of each post
By the time you read this, each of the posts in this blog (and the recipe blog) will come with an "about me" blurb at the bottom of the page, in no particular order, Scott Hanselman has one:
As …
-
Migrating an application to Azure - Part 1: Introduction
Way back in the mists of time (ok, 2011 so not exactly the age of the dinosaur!) I built an employee recognition and reward platform for an FTSE 100 company. Why's that even remotely interesting, I …
-
Adding a summary to Orchard blog posts - refining the code
After putting together my post yesterday about adding a Summary field to blog posts, Sébastien Ros dropped a comment pointing out a tidier way to access the Summary property, giving this:
post. …
-
Ensuring an action filter is only executed once per request
If you have a view that's composed of the result of more than one action, for example by having something like:
@Html.Action("PartialContentForHome", "Home")
in one view, to pull in the content for …