Under construction

Please wait while I cut & paste bits from StackOverflow…

Read More

When to fix and when to rewrite

We have all faced the dilemma of whether to fix or rewrite software. Unfortunately it’s never a straight forward decision. Many industry heavyweights say NEVER rewrite, whilst others say it is only OK in specific circumstances. The reasons for wanting a rewrite are usually based on the following: The existing code is crap: the code […]

Read More

Javascript Friendly Date and Time

I recently had a requirement in javascript to translate a date and time into something more friendly, so that for example 10th January 2014 10:45 becomes “Yesterday 10:45”, or 12:15 today becomes “2 hours ago”. After scanning the various solutions I could find, I came up with the following: < 5 minutes: now < 1 […]

Read More

Another book: ASP.NET jQuery Cookbook

I’ve been editing another book! This one covers many aspects of using jQuery within ASP.NET in a WebForms based environment. If you are new to the combination of jQuery and WebForms (aspx) then I thoroughly recommend this as a great introduction. It includes the following: Tips and tricks for interfacing the jQuery library with ASP.NET […]

Read More

ASP.NET MVC 2 Cookbook

Over the past year or so, I have had the pleasure to technically review this book, chapter by chapter and revision by revision.  The final result is an extremely useful collection of ‘recipes’ that will add extra functionality in most MVC applications and help you to understand some of the key concepts. For more details, […]

Read More

Principles of Agile Development

Since taking down the old Clicktricity website, I have had a number of requests to re-publish the agile principles. Agile Development Core Values The two most important core values of Agile Development are Communication and Simplicity. Communication It is recognised that poor communication in software teams is one of the root causes of failures within […]

Read More

Clicktricity 5D Methodology

Since taking down the old Clicktricity website, I have had a number of requests to re-publish my 5D development methodology and the agile principals. Clicktricity 5D Clicktricity 5D is an agile application development methodology that drives delivery of cost-effective, repeatable, quality solutions in an adaptable framework that suits software development and application implementations for both […]

Read More

Populating common view model attributes

In many ASP.Net MVC based applications, we often find ourselves needing to include the same information in every page.  Such information typically includes details of the current user, maybe environmental values and running totals like the number of items in a shopping basket. In order to ensure these values are always available in views, base […]

Read More

Rendering views to strings

Rendering a view or a partial to a string is a common problem, especially when you want to re-use your code and markup in a PDF or Email.  There are a number of semi-successful methods for achieving this across the internet.  The techniques outlined below are built on the excellent post from Kevin Craft at […]

Read More

Using MVC RenderAction within a Webform

As pointed out in the previous post (<here>) it is possible to call the MVC RenderPartial from within a webform.  This assumes that your webform has all the information it needs to populate the required model.  Where this information is not available, a good alternative is to use RenderAction from within the webform: Add the […]

Read More