473,757 Members | 10,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<br> after each DataList

I have a datalist with ItemTemplate as a part of my control, however
every time the ItemTemplate repeats, it inserts a <br>. How do I get it
to not insert a <br>? I need it to be a DataList as opposed to a
repeater so that I have access to the OnUpdateCommand .

<asp:Panel id="DetailsPane l" runat="server">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR><TD><DIV align="center"> <FONT color="black"
size="2"><B>Ite m</B></FONT></DIV></TD>
<TD><DIV align="center"> <FONT color="black" size="2"><B>Uni t
Price</B></FONT></DIV></TD>
<TD><DIV align="center"> <FONT color="black"
size="2"><B>Qua ntity</B></FONT></DIV></TD>
<TD><DIV align="center"> <FONT color="black" size="2"><B>Sub total
</B></FONT></DIV></TD>
</TR>

<asp:DataList id="ShoppingCar tList" runat="server"
OnUpdateCommand ="ShoppingCartL ist_Update"
OnItemDataBound ="ShoppingCartL ist_ItemDataBou nd"
DataKeyField="Q uantity" RepeatLayout="F low"
OnDeleteCommand ="ShoppingCartL ist_Delete">
<ItemTemplate>< tr>
<td>
<asp:Label ID="a" Runat=server Visible=False Enabled=False
Text='<%# DataBinder.Eval (Container.Data Item, "a") %>' />
<div align="left">
<font size="2">
<asp:Label ID=b Runat=server Text='<%#
DataBinder.Eval (Container.Data Item, "b") %>' Visible=False />
<asp:Label ID="c" Runat=server Text='<%#
DataBinder.Eval (Container.Data Item, "c") %>' />
</font>
</div>
</td>
<td>
<div align="center">
<font size="2">
<asp:Label ID="d" Runat="server" text='<%#
DataBinder.Eval (Container.Data Item, "d") %>' />
</font>
</div>
</td>
<td>
<div align="center">
<asp:TextBox ID="e" Runat=server Text='<%#
DataBinder.Eval (Container.Data Item, "e") %>' width="40px" />
<br>
<font size="1" color="#009966" >
<asp:LinkButt on ID="f" Runat="server" Text="Update f"
CommandName="up date" />
<br>
</font>
<font size="1" color="red">
<asp:LinkButt on ID="g" Runat="server" Text="g"
CommandName="de lete" />
</font>
</div>
</td>
<td>
<div align="center">
<font size="2">
<asp:Label ID="h" Runat="server"
text='<%#DataBi nder.Eval(Conta iner.DataItem, "h") %>' />
</font>
</div>
</td>
</tr>
</ItemTemplate></asp:DataList>

Nov 19 '05 #1
0 1168

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

Similar topics

4
7862
by: fis | last post by:
Hi all, I've problem because there are needed break lines in my texts on the web site but i can't do it :( My pipeline looks like: XMS -> I18N -> XSLT -> HTML I have lot of texts in my "languages" files and these are describes for things on my website. Example text looks like this:
6
12155
by: Lasse | last post by:
I have done this simple function, it seems to work as intended, to solve a problem i have had for a while. I couldnt find any sample around that was working for me. I would like to test it with you and see if there are any improvments that i should make ;-) It should be fast and if possible compatible with todays modern browser-standards. It should be activated by the onload-event. This is my code, free for all to use:
0
2469
by: CoreyMas | last post by:
Hello everyone, I am in a bit of a dilema trying to write an HTML <br> tag into a panel or placeholder. Here is the situation I have 4 tables that represent 4 levels of data (level4 is linked to a level3 etc) all the way up to a level 1
7
19162
by: noor.rahman | last post by:
I have an XML file that stores data from an HTML form. I use XSL to display the data in HTML format. The data may have newline characters. However, XSL is not displaying the newlines properly in the browser. I even replaced all the newlines with <BR/> tags but eventhough I see the tags in my source, I don't get a line break in the output document. Any help would be greatly appreciated.
5
6078
by: SteveB | last post by:
How can I write a break on Web Form using C#?
2
2533
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all the charcontrols option and chr(13) with success.. was using the following code: Dim s As String = MyTextbox.Text
1
3171
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all the charcontrols option and chr(13) with success.. was using the following code: Dim s As String = MyTextbox.Text
4
4343
by: Christofer Dutz | last post by:
Hi, I am having a small problem, that is driving me nuts. My application reads some Xml and runs 2 Xsl Transformations to generate HTML. As soon as my second XSL introduces some <br/tags, the application crashes with the same error message I would get when writing <brand no closing tag. To make everything a little stranger, even <br></brseems to be bad while <lbr/is fine. Ive tried some other tag names and the problem only appears with...
1
2655
by: Jim in Arizona | last post by:
On one page I have a datalist where a message is bound to a label. On another page I have the datalist which allows for the insert of new message as well as being able to edit those messages. The editing (EditItemTemplate) has a textbox that loads the message into its text property. The problem I'm running into is working with vbCrLf and <brinterchangeably between the textbox on the admin page and the label on the general message page. I...
0
9489
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
9298
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,...
0
9906
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...
1
9885
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
6562
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
5172
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
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
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.