for (int i = 0; i < 3; i++)
        {            RadioButton rbone = new RadioButton();
            rbone.Text = i.ToString() + ".nishisheia";
            this.UpdatePanel1.ContentTemplateContainer.Controls.Add(rbone);
        }实际效果,3个radiobutton在一行,怎么让他们显示为3行呢?

解决方案 »

  1.   

    Refer this:
    http://www.cnblogs.com/insus/archive/2011/05/05/2037385.html
      

  2.   

    for (int i = 0; i < 3; i++) 
                    {
                        RadioButton rbone = new RadioButton(); 
                        rbone.Text = i.ToString() + ".nishisheia"; 
                        this.UpdatePanel1.ContentTemplateContainer.Controls.Add(rbone);
                        Label lb = new Label();
                        lb.Text = "<br//>";
                        this.UpdatePanel1.ContentTemplateContainer.Controls.Add(lb);
                    }
    想了一下,不过总感觉不是很好..但能实现效果...不知道能不能帮助你.