Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. RadioButton not an RadioButtonList

RadioButton not an RadioButtonList

Scheduled Pinned Locked Moved ASP.NET
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    samsonx
    wrote on last edited by
    #1

    I have two Radiobutton if (RadioButton1.Checked==true) { RadioButton2.Checked=false; } else if(RadioButton2.Checked==true) { RadioButton1.Checked=false; } when i run this pgm both the radiobutton is checked...I need to check it optionally....Please do needfull...

    With Regards, Samson

    S _ 2 Replies Last reply
    0
    • S samsonx

      I have two Radiobutton if (RadioButton1.Checked==true) { RadioButton2.Checked=false; } else if(RadioButton2.Checked==true) { RadioButton1.Checked=false; } when i run this pgm both the radiobutton is checked...I need to check it optionally....Please do needfull...

      With Regards, Samson

      S Offline
      S Offline
      Sun Rays
      wrote on last edited by
      #2

      Here u are missing somecode..

      samsonx wrote:

      have two Radiobutton if (RadioButton1.Checked==true) { RadioButton2.Checked=false; } else if(RadioButton2.Checked==true) { RadioButton1.Checked=false; }

      write this on RadioButton1's click event write. RadioButton2.Checked=false; And on RadioButton2's click event write. RadioButton1.Checked=false; hope it will help.

      Thanks, Sun Rays

      1 Reply Last reply
      0
      • S samsonx

        I have two Radiobutton if (RadioButton1.Checked==true) { RadioButton2.Checked=false; } else if(RadioButton2.Checked==true) { RadioButton1.Checked=false; } when i run this pgm both the radiobutton is checked...I need to check it optionally....Please do needfull...

        With Regards, Samson

        _ Offline
        _ Offline
        _AK_
        wrote on last edited by
        #3

        no need to write the code just set the same group name for both the radio buttons.

        Best Regards, Apurva Kaushal

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups