Click here to Skip to main content
13,445,602 members (38,760 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi Friends I need a help from you. I have a form that contain lots of radio button with diffrent group name . i need a reset button to clear all radiobutton . plz help me. i dont want javascript code i am useing c# languge web application.
Posted 18-Apr-12 22:09pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 3


protected void btnClear_Click(object sender, EventArgs e)
    //This one call clear method to clear all control values

void clear()
    foreach (Control c in form1.Controls)
        //Clear all radio buttons
        if (c is RadioButton)
            ((RadioButton)c).Checked = false;       
Pravin Patil, Mumbai 19-Apr-12 4:57am
Good solution..
My 5.
Bibin Benny 19-Apr-12 5:37am
I am Using ContantPage. so i cant directly apply this ..
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

check these links..




This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180314.2 | Last Updated 19 Apr 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100