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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:38:17+00:00 2026-06-17T10:38:17+00:00

I have a aspx.vb code fragment which looks like this! (I am reading contents

  • 0

I have a aspx.vb code fragment which looks like this! (I am reading contents from xml config file to create radiobuttonlist)

Dim tr As TableRow = New TableRow

Dim tcValue As TableCell = New TableCell

Dim RadioButtonList = New RadioButtonList

//After this I load all the items in radiobuttonlist

tcValue.Controls.Add(tdRadioButtonList)

tr.Cells.Add(tcValue)

Imagine this radiobuttonlist has 6 items.I want to create 2 columns which shoud consist of 3 radiobutton elements in each column and in a single row. How Can I go about implementing it?

  • 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-17T10:38:18+00:00Added an answer on June 17, 2026 at 10:38 am

    If you’re so keen to make a custom list, why not make a table and have something like this, having a list/array of RadioButtons instead of one RadioButtonList object:

    (Sorry, I don’t use VB except to scrape something together in Access, so you’ll have to make do with my C#, which you should be able to interpret fairly easily)

    RadioButton[] items = getAllItems();
    
    int i = 0;
    Table table = new Table();
    TableRow currentRow;
    
    foreach(RadioButton item in items)
    {
       if(i != 0)
          table.Rows.Add(currentRow);
       if(i++ % 2 == 0)
          currentRow = new TableRow();
       currentRow.Cells.Add(new TableCell()
          {
             Controls.Add(item)
          });
    }
    
    if(currentRow.Cells.Count != 0)
       table.Rows.Add(currentRow);
    
    Page.Controls.Add(table);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Inside my .aspx I have some JSON code that looks like this: function someFunctionName()
I have used code like this: http://msdn.microsoft.com/en-us/library/dw70f090.aspx to access database before when working in
We have a .aspx file which has about 400 lines of javascript code. Is
I got an aspx code that looks like this <img src=${image_item_path} /> On Chrome/IE
I have the following X.aspx code..to download excel file from Server if (ss[5] !=
I have the following markup / code block in the ASPX file. The binding
I have a problem with checkbox. For example, I have this aspx's code <asp:Content
I have aspx pages which uses repetitive code. So I put them on a
I have the following method in aspx code behind which displays a jquery dialog.
I have a GridView1 , which I am binding from code behind. The one

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.