private void Button1_Click(object sender, System.EventArgs e){foreach(System.Web.UI.Control ctl in this.Page.Controls){LoopAllControls(ctl);} }public void LoopAllControls(System.Web.UI.Control oControl){foreach(System.Web.UI.Control frmControl in oControl.Controls){if(frmControl.GetType().ToString()=="System.Web.UI.WebControls.RadioButtonList"){RadioButtonList rList=new RadioButtonList();rList=(RadioButtonList)frmControl;Response.Write(rList.SelectedValue);}if(frmControl.HasControls()){LoopAllControls(frmControl);}}}