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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:26:57+00:00 2026-06-18T09:26:57+00:00

I have an existing RadioButtonList on a page and need to set the second

  • 0

I have an existing RadioButtonList on a page and need to set the second button to be checked as default instead of the first.

I probably need to do it with javascript on the page as I cannot edit the original control.

<list:RadioButtonList runat="server" Class="class" Text="text"
AlternativeText="alternative text"   /> 

Any idea how i can detect the control and set its default value?

  • 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-18T09:26:58+00:00Added an answer on June 18, 2026 at 9:26 am

    If you use ASP.NET you can set the following:

    <asp:RadioButtonList ID="RadioButtonList1" runat="server">
      <asp:ListItem Selected="True" ></asp:ListItem>
      <asp:ListItem></asp:ListItem>
      <asp:ListItem></asp:ListItem>
      <asp:ListItem></asp:ListItem>
      <asp:ListItem></asp:ListItem>
    </asp:RadioButtonList>
    

    I’ve added the attribute Selected=”True”, so you always have a default value selected.

    You can also do this in code:

    if (RadioButtonList1.SelectedIndex == -1) //-1 is the indication of none selected
    {
        RadioButtonList1.SelectedIndex = 2; //select index 2 (can also be value or text)
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have existing java code and need to create Design Document based on that.
I have an existing program deployed where some customer databases have a field set
I have existing javascript in a project that creates a 'Calendar' object. The object
I have existing code that uses CMNewProfileSearch to find then iterate over the color
I have existing Linux shared object file (shared library) which has been stripped. I
I have existing code with their own makefiles which I want to load into
I have quick question for you SQL gurus. I have existing tables without primary
I'm working on a project where the client wants to have existing pages dynamically
I'm new to stored procedure world. We have existing system with existing stored procedure,
I have an existing Node project sitting in my Dropbox, and when I open

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.