473,804 Members | 4,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

datalist and separatorTempla te

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="bl ue" BorderWidth=1 >
< ItemStyle Width="90">< / ItemStyle >
< SeparatorStyle Wrap="False" Width="27" >< / SeparatorStyle>
< ItemTemplate>
<img src="/images/< % # DataBinder.Eval (Container.Data Item, "Name") % >">
</ ItemTemplate >
< SeparatorTempla te >*< / SeparatorTempla te>
< / 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 2896

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

Similar topics

1
5672
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 carl.howarth@m-s-solutions.co.uk
2
1765
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
1159
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 first row of data is displayed and repeated on every row afterwards. Here's the code, please help, and thanks immensely student <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="DataList2.WebForm1"%>...
6
2193
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 on the footer. At the moment, I go through the dataListItems like so: for each oItem as DataListItem in DataList1.Items trace.warn("inside for loop oItem type = " & oItem.itemType.ToString())
8
5895
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 that, I display End_Date on the DataList control. The output looks like 3/18/2005 12:00:00 AM . I'd like to format data for this field to be 3/18/2005. Please help me. Thanks in advance....
1
2260
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 properly but it appears to be not working properly. They can select all of the radiobuttons at once. Not very good! How do I set it up so each radiobutton is part of the group? I'm using the GroupName option but no luck. See my HTML below. Thanks
0
1095
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 of how to create a TemplateColumn in a DataGrid with a hyperlink with two parameters at runtime (http://www.c-sharpcorner.com/Code/2003/June/AddItemTemplateDynamically.asp). But now I want to create a templatecolumn in a datalist with some...
1
2171
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 datalist, only the first line is visible. This is the code in short: <form id="form1" runat="server"> <asp:DataList ID="DataList1" runat="server" Width="612px"
0
1257
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 over the dataList. Bleow is the code <table width="100%"> <tr> <td>
0
9707
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.