ASP.NET 4.0 having many many new features. One of them is the RepeatLayout property for the CheckBoxList and RadioButtonList controls. The property is useful when we need decide how this controls will be render as html when its load in browser .
Code Snippet
There are four options available there.
- Flow
- OrderedList
- Table
- UnorderedList
Flow: This option will render control with span tag. This option will be better when you need tables less html for your site.
OrderedList:This option will load contriol as orderedlist. It will load html with
- and
- Tags.
Table:If you love table structure then this is the option for you it will load html with
and
tags. UnorderedList: This option will load control as UnorderedList. It will load with
- and
- tags.
So this property will useful when you want to have more control over html rendering in your browser as per your requirement.
Happy Programming…
- tags.