Placing elements beside ListItems in a RadioButtonList or CheckBoxList

When creating a RadioButtonList or CheckBoxList, the only control allowed
inside the RadioButtonList or CheckBoxList tags is the ListItem. However, I
want to place a TextBox beside one of the ListItems. Is there any way to do
this (other than using RadioButton and CheckBox instead)? Thanks.
--
Nathan Sokalskihttp://www.nathansokalski.com/

Advertisements

RE: Placing elements beside ListItems in a RadioButtonList or CheckBox

the checkboxlist and the radiobuttonlist render the items html directly
rather than creating child controls (that render their own html), so your
only option is to subclass the list, and override the render.

-- bruce (sqlwork.com)

"Nathan Sokalski" wrote:
> When creating a RadioButtonList or CheckBoxList, the only control allowed
> inside the RadioButtonList or CheckBoxList tags is the ListItem. However, I
> want to place a TextBox beside one of the ListItems. Is there any way to do
> this (other than using RadioButton and CheckBox instead)? Thanks.
> --
> Nathan Sokalski
>
> http://www.nathansokalski.com/
>
>
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!