asp.net radio button grouping

后端 未结 10 475
余生分开走
余生分开走 2020-12-05 09:47

I am currently having an issue with radio buttons and grouping. I have an asp radio button within a repeater control. I have the group name attribute set to \"Customer\". Wh

10条回答
  •  情歌与酒
    2020-12-05 10:32

    Unfortunately, this is a well known issue with radio buttons within a repeater. One of your only options would be to create a custom server control derived from the RadioButton class and override how it renders.

    EDIT: Here's a sample of what the derived class may look like:

    public class MyRadioButton : RadioButton
    {
        protected override void Render(HtmlTextWriter writer)
        {
            writer.Write("");
            writer.Write("");
        }
    }
    

提交回复
热议问题