Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7910661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:56:56+00:00 2026-06-03T12:56:56+00:00

I basically want to achieve what a RadioButtonList does, without using that control (i.e.

  • 0

I basically want to achieve what a RadioButtonList does, without using that control (i.e. keep the radio buttons separate.). So I dragged two regular RadioButton (not lists) controls into the page. Both radio buttons are set to AutoPostback=true.

I tried using the following two event handlers:

protected void radio1_CheckedChanged(object sender, EventArgs e)
{
    radio2.Checked = false;
}

protected void radio2_CheckedChanged(object sender, EventArgs e)
{
    radio1.Checked = false;
}

So what I expect is, if radio1 is clicked by the user, radio2 should uncheck. This doesn’t happen. There’s no error or anything. I stepped through and found that indeed upon selection of one of the radio buttons, the event DOES fire. And it changes the .Checked status of the other radio button to false. However, visually on the page, both radio buttons are still checked. (Seems like a postback issue, I know, but it’s not that).


The reason I can’t use a RadioButtonList control is that, given other options on the page, I need to disable certain radio button choices. For example, choosing Item A in a dropdown list disables radio1 so it’s not even a choice, but choosing Item B again re-enables radio1, and disables radio2.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:56:57+00:00Added an answer on June 3, 2026 at 12:56 pm

    You don’t need server side event to achieve this.
    Use GroupName attribute of radiobutton and keep all your radio button under the same groupName
    Like –

    <asp:RadioButton ID="RadioButton1"  GroupName = "a" runat="server" />
    <asp:RadioButton ID="RadioButton2" GroupName = "a" runat="server" />
    <asp:RadioButton ID="RadioButton3" GroupName = "a"  runat="server" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I basically want to open a browser window from Word using VBA that does
Basically I want to achieve a tuple (or any datatype that fits my problem)
Basically I want to achieve such functionality that 5-10 functions are executed in a
so basically I want to achieve a multi-lingual website with the following scenarios: Using
Basically, I want to achieve the same thing as ON DUPLICATE KEY in MySQL.
Basically I want to get a Layout that behaves like a Java GridLayout. I
the output that I want to achieve is something like this: A Anthony SL
I will try and explain exactly what I want to achieve first. Imagine two
I have two models. A project and a backers model. I want to basically
I'm looking for some API for printing. Basically what I want to achieve is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.