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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:57:26+00:00 2026-05-13T08:57:26+00:00

I am developing Quiz project. In DetailsView I want to display the Question and

  • 0

I am developing Quiz project. In DetailsView I want to display the Question and answers.

The number of answers vary for question to question.Say example

1 ) C# Support

   (i)  Generics
   (ii) LINQ
   (iii)EntLib  

2 ) Find the odd one
    (i)  DB2
    (ii) Oracle
    (iii)MS-Access 
    (iv) Sql Server
    (v)  Javascript

so i can not fix the number of radio buttons.Some questions may have multiple answers.so i need to display checkboxes instead of radio buttons.

My Question is how to generate Radio Buttons or Checkboxed Dynamically ?

  • 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-13T08:57:26+00:00Added an answer on May 13, 2026 at 8:57 am

    Create a RadioButtonList or CheckBoxList for each question and use its Items collection to add the answers.

    Very simple example in C#:

    class Question
    {
        public string QuestionText;
        public List<string> Answers;
    }
    
    protected void AddQuestionsToContainer(Control container, List<Question> questions)
    {
        foreach (Question q in questions)
        {
            var qt = new Label();
            qt.Text = q.QuestionText;
            container.Controls.Add(qt);
    
            var rbl = new RadioButtonList();
    
            foreach (string answer in q.Answers)
            {
                rbl.Items.Add(new ListItem(answer));
            }
    
            container.Controls.Add(rbl);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a quiz based app. The quiz contains 1 question and 4
ok i am developing a quiz ... the question's options ... so i am
I am developing a quiz application which consists of a question and three options
I'm developing a quiz application. I have 100 questions. For example, what city is
I am developing a quiz application in php and Javascript. The quiz starts when
I am developing a quiz component in Javascript and I have a startTimer() function
I am developing an quiz based application. I wanted to know like, how can
I am developing an quiz based app and i wanted to know how i
I'm developing an Android app which is a quiz. On the other hand, I'm
Developing for Android 2.3, I have a question regarding layouts. I use a vertival

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.