Posts

Using Markdown in ASP.NET

Recently I was tasked with adding some CMS style functionality to a customers site. Rather than reinvent the wheel by doing my own pattern matching etc, I decided to use some markdown to do the hard work. I naively thought that it would be easier to implement because the markdown library would take care of key security concerns. Little did I realise...

Adding ASP.NET Identity 4.5 to an Existing Application

Watching videos about putting ASP.NET websites together, it always looks really nice and straight forward, it demos really well. Back at the office, faced with some real world requirements things never seem that simple. To this end I decided to try to setup the Identity framework from scratch on an existing web application.

Visual Studio 2013 WIF 3.5 STS Template

The Windows Identity Foundation (WIF) 3.5 provided some Visual Studio templates to create a Secure Token Service (STS.) Unfortunately these were not available in Visual Studio 2013 and also, they actually created a Web Site rather than a Web Application.

Clicked checkbox does not post back to the server

Recently I got a bit stuck trying to do the simple task of set some values on a checkbox. The form was quite complex and I was finding that checking a checkbox to signify a "FollowUp" had occurred was not being posted back to the server. It took quite a bit of fiddling around before I got to the bottom of the problem so thought I would record the solution...

JavaScript Property Descriptors

In a previous post, I mentioned how a JavaScript object can be thought of simply as a collection of properties. But a property in JavaScript is more than just a value - property’s themselves have… well properties.

Creating objects in JavaScript

I've been messing around with JavaScript for years now, but have been more of a JQuery hacker. I thought it was time to learn the language properly as its becoming increasingly common in web applications these days. This is a bit of a dummies guide, but I guess you need to start somewhere...

Setting up Rhino Mock Stubs

A quick template below for the basic setup of Rhino Mocks Stubs...