The blog has moved to ... Many google searches point here so I am leaving it operational, but there will be no new posts.

Tuesday, February 27, 2007

2007 Grasshopper #1 - Old Caz Results

2007 Grasshopper Adventure Series #1 - Old Caz - Results are now up!

Check them out here

Also pics here

And the blog -

Monday, February 19, 2007

2007 Tour of California - Stage 1

2007 Tour of California - Stage 1
Coming over Coleman Valley

The pack coming up towards the KOM, 4 riders going off the front
Tour of California 2007 - Coleman Valley

Basso leading the rest of the pack
Tour of California 2007 - Coleman Valley

Sunday, February 18, 2007

2007 Tour of California - Prologue

Levi takes the Prologue two years in a row!
get the details at cycling news . com
he will be rolling into home town Santa Rosa tomorrow wearing the leaders jersey again!

check out these links for photos, news, live coverage etc...

looking forward to Coleman Valley!

Sunday, February 11, 2007

A client side (javascript) confirm box with ASP.NET

The following code sample illustrates a client side (javascript) confirm box in use with an aspx button, this presents the end user with a dialog box asking ''are you sure you want to submit this form?', it gives the user two options 'Ok' and 'Cancel', clicking ok will submit the form, clicking cancel will not

This sample code uses 4 variations;
  • TestButton1 - a standard html input type 'button', which submits the page using hand coded js
  • TestButton2 - a standard html input type 'submit', it has the default behaviour of submitting the form
  • TestButton3 - an asp:button with the OnClientClick (rendered as onclick) declared in the mark up
  • TestButton4 - an asp:button with the onclick defined in the code behind or c#

The aspx page markup - JavaScriptConfirm.aspx

The c# 'code-behind'

The 'key' here is the return in the onclick method; the javascript confirm will return true if 'Ok' is clicked and false if 'Cancel' is clicked, we must return this value from our buttons onclick event so that the form will not generate an HTTP POST (or PostBack if you like)

if you do not include the return statement in the onclick the form will post back regardless of which button is clicked 'Ok' or 'Cancel'; for instance you do NOT want to do this
but instead do this
onclick="return AreYouSure();" 

Generate a Guid from MSSQL

Really simple...


This returns a MSSQL datatype of uniqueidentifier
read more here -

free .NET Business Rule Engines

here are some of the free or open source .NET Business Rule Engines I have come across

NxBRE (port of the Java JxBRE)

Jaxlab Rules Engine

Simple Rule Engine - SDSRE!6B1F9DE12D24534D!131.entry

Saturday, February 10, 2007

Coding Links

Some links I wanted to keep track of...

XSD files and Visual Studio 2005

log4Net - quick and dirty for ASP.NET web applications