ASP.NET 4.0 New Feature- RepeatLayout property for CheckBoxList and RadioButtonList Controls.
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 .
There are four options available there.
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 <ol> and <li> Tags.
Table:If you love table structure then this is the option for you it will load html with <table><tr> and <td> tags.
UnorderedList: This option will load control as UnorderedList. It will load with <ul> and <li> tags.
So this property will useful when you want to have more control over html rendering in your browser as per your requirement.