473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

datalist and separatorTemplate

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:DataList 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:DataList >

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
Nov 19 '05 #1
0 2878

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Carl Howarth | last post by:
Hi, I have a check box list within a datalist. Can anybody tell me how I go about accessing the onclick event of these checkbox lists? (using vb.net) Many thanks, Carl Howarth...
2
by: Leszek Taratuta | last post by:
Hello, I have a quick question: How to specify the height of the SeparatorTemplate (that is rendered as <td> tag) in DataList? Thanks, Leszek Taratuta
1
by: student | last post by:
Hello all and thanks for all of the help. I am currently learning how to display data in a dataList. The problem here is that the data from the database is not being displayed completely. Only the...
6
by: tshad | last post by:
I need to get to a status label I have on my footer section of my datalist. There is no event happening that would go to the footer. I am just doing some processing and want to update the label...
8
by: bienwell | last post by:
Hi, I have a problem of displaying data bound by a datalist control. In my table, I have a field Start_date which has Short Date data type. I tried to update this field by Current Date. After...
1
by: David Lozzi | last post by:
Howdy, Using ASP.NET 2.0 with VB. I have a datalist that is listing out options. Ecah option has a radio button for which the user has to select only one option from the list. It displays...
0
by: Pugi! | last post by:
I am studying the book ASP.NET Data Web Controls. Very interesting, and I try to put everything in runtime (VB.NET) code instead of in the page. I got very far but now I am stuck. I found examples...
1
by: L-E Eriksson | last post by:
Hello! I have a web form with a datalist control. The datalist shows articles from a db. The page looks nice in IE6 and FF, but in IE7 the line breaks are messed up, so for each article in the...
0
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I am having this problem. I have this datalist and whenever I expand the datalist by the plus button, it overlaps other controls on my web page and sometimes these controls come...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.