M
massimop
Hi to all,
I use a datalist, that should return a table with 3 columns.
The cell of the first column is used to show an image .
The cell of the second colun is used to show a * (separator) .
The cell of the third column is used to show an image .
Here the code:
< asp
ataList id="DataList1" runat="server" RepeatColumns="2"
RepeatDirection="Horizontal" BorderColor="blue" BorderWidth=1 >
< ItemStyle Width="90">< / ItemStyle >
< SeparatorStyle Wrap="False" Width="27" >< / SeparatorStyle>
< ItemTemplate>
<img src="/images/< % # DataBinder.Eval(Container.DataItem, "Name") % >">
</ ItemTemplate >
< SeparatorTemplate >*< / SeparatorTemplate>
< / asp
ataList >
The problem is, that the datalist returns a table with 4 columns.
Wrong table with 4 colums:
Img1 * Img2 *
Img3 * Img4 *
Img5 * Img6
Right table with 3 columns:
Img1 * Img2
Img3 * Img4
Img5 * Img6
How can I set the datalist, so I can see a table with 3 columns?
Any suggestions?
Thanks,
Massimo
I use a datalist, that should return a table with 3 columns.
The cell of the first column is used to show an image .
The cell of the second colun is used to show a * (separator) .
The cell of the third column is used to show an image .
Here the code:
< asp
RepeatDirection="Horizontal" BorderColor="blue" BorderWidth=1 >
< ItemStyle Width="90">< / ItemStyle >
< SeparatorStyle Wrap="False" Width="27" >< / SeparatorStyle>
< ItemTemplate>
<img src="/images/< % # DataBinder.Eval(Container.DataItem, "Name") % >">
</ ItemTemplate >
< SeparatorTemplate >*< / SeparatorTemplate>
< / asp
The problem is, that the datalist returns a table with 4 columns.
Wrong table with 4 colums:
Img1 * Img2 *
Img3 * Img4 *
Img5 * Img6
Right table with 3 columns:
Img1 * Img2
Img3 * Img4
Img5 * Img6
How can I set the datalist, so I can see a table with 3 columns?
Any suggestions?
Thanks,
Massimo