i’ve got some Google Wave accounts to give out – who is interested?
Yipee! Been accepted onto the …
Yipee! Been accepted onto the beta program for Google Wave – now I just need to work out how to use it 😛
Why does writing valid css for…
Why does writing valid css for IE6, 7 & 8 need to be so hard – firefox just, well works! grrrrrrrrrr
Google producing Chrome OS – w…
Google producing Chrome OS – whatever next, missions to mars?
asp.net cassini comes to the r…
asp.net cassini comes to the rescue – open source, dont ya love it …
Anyone managed to run an asp.n…
Anyone managed to run an asp.net website complete with dataset capabilities on a CDRom? Let me know what solution you came up with!
Well another project successfu…
Well another project successfully (cough) rolled out today – http://www.aidsalliance.org – my last 7 weeks of hard graft! Phase 2 now !!!!
Using and grouping RadioButton Controls in a Repeater
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,
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…
What billing and purchase tracking (ok accounting) tools do you use on your mac? Currently using iRatchet for billing but need expenditure 2
Get 6 top mac apps for free wi…
Get 6 top mac apps for free with MacHeist – http://www.macheist.com/