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

  • Home
  • SEARCH
  • 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 7434247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:48:17+00:00 2026-05-29T09:48:17+00:00

I write this codes : TabContainer TabContainer1 = new TabContainer(); TabContainer1.ID = TabContainer1; HtmlTableRow

  • 0

I write this codes :

  TabContainer TabContainer1 = new TabContainer();
        TabContainer1.ID = "TabContainer1";

        HtmlTableRow row = new HtmlTableRow();
        HtmlTableCell cell = new HtmlTableCell();



        for (int toplam_grp = 0; toplam_grp < 1; toplam_grp++)
        {



        Panel my_panel= new Panel();
        my_panel.ID = toplam_grp + "my_panel";
        for (int j = 0; j < 10; j++)
        {
            Label my_label = new Label();

            my_label.ID = j + 10 * toplam_grp + "mylabel";//burda 10 j nin sınırı olcak

            my_label.Text = "asdasdas";

            RadioButtonList radioButtonList = new RadioButtonList();
            radioButtonList.ID = j + 10 * toplam_grp + "radioButton";
            radioButtonList.RepeatDirection = System.Web.UI.WebControls.RepeatDirection.Horizontal;
         for (int i = 0; i < 5; i++)
            { 
                radioButtonList.Items.Add(((char)(i + 65)).ToString());                
            }
            my_panel.Controls.Add(my_label);           /////////////////////////burda yanyana gözükse daha iyi olur
            my_panel.Controls.Add(radioButtonList);

        }



        TabPanel tab = new TabPanel();
        tab.ID = toplam_grp+"tab1";
        tab.HeaderText =toplam_grp+"nbr";

        TabContainer1.Tabs.Add(tab);
        TabContainer1.Tabs[toplam_grp].Controls.Add(my_panel);

        }

        cell.Controls.Add(TabContainer1);
        row.Cells.Add(cell);

        myplace.Rows.Add(row);

I create a tabcontainer and one tab and in tab I create 10 radiobuttonlist(I give them ids each one) which have 5 members.
And I write this code to reach radiobuttonlist but ı dont reach because dont find their ids :

string ss = "";
        for (int i = 0; i < 10; i++)
        {

            ss += ((RadioButtonList)(FindControl(i + "radioButton"))).SelectedIndex + "\n";

        }
        MessageBox.Show(ss);

for example first radiobuttonlist id : 0radioButton but it cant found.What can I do.Thanks for answering…

  • 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-29T09:48:18+00:00Added an answer on May 29, 2026 at 9:48 am

    The whole code is a little confusing for me but I try to add my 2 cents.

    You need to execute FindControl against the RadiobuttonList container and not against the page.

    So, for instance, if you added a control named RadioButtonList1 to a asp.net panel named Panel1 you would have to do

     Panel1.FindControl("RadioButtonList1 ")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

let's assume that I have some codes like this. What should I write there
I write some jQuery codes as below: $('.button').each(function(){ $(this).click(function(){ console.log($(this)); do_sth(); }); }); var
I have this codes in my projects to open a new window to show
would someone please write this code: this.Loaded += (s, e) => this.loaded = true;
How can I write this code more cleanly/concisely? /// <summary> /// Creates a set
Is there a better way to write this code? I want to show a
How to write this JavaScript code without eval? var typeOfString = eval(typeof + that.modules[modName].varName);
Is there a way to write this C/C++ code in Python? a = (b
Eg. can I write something like this code: public void InactiveCustomers(IEnumerable<Guid> customerIDs) { //...
I have this code to write to a file, it works perfect but I

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.