The blog has moved to http://jessehouse.com/ ... 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 - http://www.grasshopperadventureseries.blogspot.com

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
onclick="AreYouSure();" 
but instead do this
onclick="return AreYouSure();" 

Generate a Guid from MSSQL

Really simple...

SELECT NEWID()


This returns a MSSQL datatype of uniqueidentifier
read more here - http://msdn2.microsoft.com/en-us/library/aa276822(SQL.80).aspx

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)
http://www.agilepartner.net/oss/nxbre/
http://sourceforge.net/project/showfiles.php?group_id=97759

Jaxlab Rules Engine
http://www.jaxlab.com/rulesengine/default.aspx
http://www.codeproject.com/useritems/Rules_In_Your_Apps.asp
http://www.codeproject.com/useritems/Using_a_Rules_Engine.asp

Simple Rule Engine - SDSRE
http://sourceforge.net/projects/sdsre/
http://thusithata.spaces.live.com/Blog/cns!6B1F9DE12D24534D!131.entry

Saturday, February 10, 2007

Coding Links

Some links I wanted to keep track of...

XSD files and Visual Studio 2005
http://blogs.msdn.com/astebner/archive/2005/12/07/501466.aspx

log4Net - quick and dirty for ASP.NET web applications
http://haacked.com/archive/2005/03/07/2317.aspx