473,795 Members | 2,892 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 2895

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
1764
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
2191
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
5894
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
2259
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
1092
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
2170
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
1255
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
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7540
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
6780
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
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3
2920
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.