asp.net datalist RepeatDirection=“vertical” not working

sv123

New Member
I have a datalist in my asp.net application that renders out html checkboxes:\[code\]<asp:DataList ID="dlCategories" runat="server" RepeatColumns="2" RepeatDirection="Vertical"> <ItemTemplate> <input type="checkbox" id="chk" runat="server" class="myclass" catID='<%# DataBinder.Eval(Container.DataItem,"catID") %>' catName='<%# DataBinder.Eval(Container.DataItem,"catName") %>' colID='<%# DataBinder.Eval(Container.DataItem,"colID") %>' /><img src='http://stackoverflow.com/questions/7093932/<%# DataBinder.Eval(Container.DataItem,"img") %>' alt='<%# DataBinder.Eval(Container.DataItem,"catName") %>' /><%# DataBinder.Eval(Container.DataItem,"catName") %> </ItemTemplate></asp:DataList>\[/code\]I can't seem to get the output to render vertically, it always renders horizontally. I want the output to look like:\[code\]Result1 Result4Result2 Result5Result3 Result6\[/code\]But no matter what i put in repeatdirection, i always get:\[code\]Result1 Result2Result3 Result4Result5 Result6\[/code\]Can anyone see what I'm doing wrong?
 
Top