What billing and purchase tracking (ok accounting) tools do you use on your mac? Currently using iRatchet for billing but need expenditure 2
-
By default, you cannot group radiobutton controls within a repeater as the repeater mangles the names. I had this exact problem when changing from checkboxes to radio buttons – after searching Google for 10 mins, I found a post at the following site by Eric Smith which i’ll copy the relevant info here so I don’t lose it
http://www.codeguru.com/csharp/csharp/cs_controls/custom/article.php/c12371/
Add the following Javascript code to your page:
function SetUniqueRadioButton(nameregex, current) { re = new RegExp(nameregex); for(i = 0; i < document.forms[0].elements.length; i++) { elm = document.forms[0].elements[i] if (elm.type == 'radio') { if (re.test(elm.name)) { elm.checked = false; } } } current.checked = true; }
Now for the repeater itself, The code is linked to the Repeater through the ItemDataBound event. For it to work properly, you need to know the name of the Repeater control, as well as the GroupName you’re assigning to the RadioButtons. In this case, I’m using rptPortfolios as the name of the Repeater, and Portfolios as the group name:protected void rptPortfolios_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem) return; RadioButton rdo = (RadioButton)e.Item.FindControl("rdoSelected"); string script = "SetUniqueRadioButton('rptPortfolios.*Portfolios',this)"; rdo.Attributes.Add("onclick", script); }
What billing and purchase trac…
Nov 7th, 2009 by Simon Steed
Get 6 top mac apps for free wi…
Nov 7th, 2009 by Simon Steed
Get 6 top mac apps for free with MacHeist – http://www.macheist.com/
Just fulfilled another photo o…
Nov 1st, 2009 by Simon Steed
Just fulfilled another photo order for two clients – need to improve workflow, it’s good, just not as good as it can be
Imminent impact @MacHeist (151…
Nov 1st, 2009 by Simon Steed
Imminent impact @MacHeist (151.7,174.4) Witness it and get DaisyDisk ($20) for FREE to reclaim GBs of space on your Mac! http://macheist.com
RT @PhotoLegal: Petition again…
Oct 30th, 2009 by Simon Steed
RT @PhotoLegal: Petition against the Government’s smash and grab raid on photographer’s intellectual property http://bit.ly/1hZEhN
chilling before a mamouth phot…
Oct 27th, 2009 by Simon Steed
chilling before a mamouth photo editing session laters
Right that is 80 gig of my mus…
Oct 15th, 2009 by Simon Steed
Right that is 80 gig of my music in one place, now I need to get iTunes running to sort them all out – ouch!
See, I knew banannas were impo…
Oct 15th, 2009 by Simon Steed
See, I knew banannas were important http://bit.ly/3udwqx
Berners-Lee ’sorry’ for slashe…
Oct 15th, 2009 by Simon Steed
Berners-Lee ’sorry’ for slashes in internet URL’s http://bit.ly/SJZno
