Here is a sample of the VB.NETcode - how come this works fine with my button but not my radiobutton!
//This is my hidden field
ClientScript.RegisterHiddenField(Me.UniqueID & "_someVariable", "")
Dim radDefault As RadioButton = New RadioButton()
radDefault.GroupName = "radio buttons"
radDefault.AutoPostBack = False
radDefault.Attributes.Add("onClick", "document.forms." & Me.UniqueID & "_someVariable.value='0';document.forms.submit();")
The code is simplified as the button generation is actually through an iterator but the same properties are given to each generated radio button.