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 767417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:01:28+00:00 2026-05-14T18:01:28+00:00

I have a RadioButtonList in an UpdatePanel. Say I click the second button (value

  • 0

I have a RadioButtonList in an UpdatePanel.

Say I click the second button (value of “1”). It posts back, and hits my event handler —

  • I can watch the POST go out in Firebug, and it is clearly sending the correct form value of “1”
  • I can catch the event handler with a breakpoint, and check Request.Form and clearly see that the incoming value is a “1”

However, the SelectedValue of the control (StatusButtons.SelectedValue) is always “0” (actually, it’s whatever it was when the page originally loaded — this is usually “0”).

Is there some other way I should be getting the value selected in the RadioButtonList?

<asp:UpdatePanel runat="server" UpdateMode="Always">
    <ContentTemplate>
         <asp:RadioButtonList OnSelectedIndexChanged="StatusButtons_OnSelectedIndexChanged" RepeatDirection="Horizontal" AutoPostBack="true" ID="StatusButtons" runat="server">
            <asp:ListItem Value="0">Foo</asp:ListItem>
            <asp:ListItem Value="1">Bar</asp:ListItem>
            <asp:ListItem Value="2">Baz</asp:ListItem>
         </asp:RadioButtonList>       
    </ContentTemplate>
</asp:UpdatePanel>
  • 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-05-14T18:01:28+00:00Added an answer on May 14, 2026 at 6:01 pm

    Turns out I’m an idiot. I didn’t acknowledge that the Ajax postback goes through an entire page lifecycle. I somehow had it in my head that it only ran the postback method it was calling.

    Sure enough, in Page_Load, I was initializing the value of this control…so I was re-initializing it on every postback.

    Silly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can i get a value of a selected radio button in LoadViewState event of
I have the following ASP.NET RadioButtonList: <asp:RadioButtonList ID=rbl runat=server> <asp:ListItem Text=Type1 Value=1 /> <asp:ListItem
I have an asp:RadioButtonList and want to declaratively bind the value to an enumeration.
I have a DataList that Displays some Posts with a RadioButtonList inside where it
I would like to have a radiobuttollist were you can select value null. Something
I have an asp:radiobuttonlist that serves two purposes depending on which button is pushed.
I have a list of radio button, not radiobuttonlist, I need to find out
I have a list of radio button, not radiobuttonlist, I need to find out
I have a RadioButtonList with several ListItems. As user click before thinking they select
I have a RadioButtonLIst as follows: <asp:RadioButtonList runat=server ID=Location ValidationGroup=formVal> <asp:ListItem Value=Beverly Hills />

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.