Storing a byte array in a Cookie (nom!) C# MVC

15 Aug 2013 .Net, C#, MVC No Comments

It seems that cookies can eat store just about any kind of data, but keeping to a limit of 20 cookies per domain and 4096 bytes per cookie is the safe way to do it (source). I needed to store a byte

Continue reading →

App Offline page that refreshes when the site is back online

08 Jul 2013 JQuery, Server 2008 No Comments

I created an app_offline.htm page to place in my site's folder while I was deploying a new version, but I didn't want to put a 'click this link to refresh' or a suggestion to refresh the page. That seemed to be pushing my problem onto the user.

I decided that jQuery

Continue reading →

Downgrading an MVC4 project from .Net 4.5 to .Net 4.0

25 Jun 2013 .Net, Visual Studio No Comments

I recently created a new project in Visual Studio 2012 and didn't really think much about the .Net version (mistake!). It turns out that the server it is destined for is still MS Server 2003, which will not run .Net 4.5. Oh dear. So I Googled downgrading, and the process of

Continue reading →