protected void btnClear_Click(object sender, EventArgs e) { //This one call clear method to clear all control values clear(); }
void clear() { foreach (Control c in form1.Controls) { //Clear all radio buttons if (c is RadioButton) ((RadioButton)c).Checked = false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)