Wednesday 29 February 2012

Convert decimal hours to Time String

If you need to convert a decimal number of hours, to a time string. This can be achieved with the below code;

Wednesday 8 February 2012

Drop down list can only have one selected item

If you get this error when binding a drop down list to a new datasource,

try creating a list item out of the current selected text and value, add it to the list then call databind.

Tuesday 7 February 2012

How to fire an async postback from javascript

Wednesday 1 February 2012

How to set the width of jQuery ComboBoxes

function configureComboxes() {
$('.comboBox').combobox()
$('.ui-autocomplete-input').css('width', '90%');
}

Visual Studio - Get Rid of Meta:Resource key

Within Visual stdio find and replace use the following regex to remove all of there extra tags.

if you want to get rid ofMeta:Resource key

use this regex

{meta}:Po{resourcekey="}:i{"}

Visual Studio - get rid of __Designer Mapid

Within Visual stdio find and replace use the following regex to remove all of there extra tags.

if you want to get rid of __designer:mapid="22"

use this regex

<__designer\:mapid=:q