473,405 Members | 2,272 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,405 software developers and data experts.

Datalist rendering in IE7

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"
Height="84px">
<ItemTemplate >
<asp:Label ID="PAGECONTENTLabel" runat="server"
Text='<%# Eval("PAGECONTENT") %>' Width="100%"></asp:Label>
</ItemTemplate>
<SeparatorTemplate>
<hr />
</SeparatorTemplate>
<ItemStyle />
</asp:DataList>
</form>

I guess there som css needed?
Regards

L-E Eriksson
Mar 15 '07 #1
1 2157
Convert the line breaks to <BRtags and see if that helps. IE7 does not
compensate for non-standard stuff the way earlier versions do.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"L-E Eriksson" wrote:
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"
Height="84px">
<ItemTemplate >
<asp:Label ID="PAGECONTENTLabel" runat="server"
Text='<%# Eval("PAGECONTENT") %>' Width="100%"></asp:Label>
</ItemTemplate>
<SeparatorTemplate>
<hr />
</SeparatorTemplate>
<ItemStyle />
</asp:DataList>
</form>

I guess there som css needed?
Regards

L-E Eriksson
Mar 15 '07 #2

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

Similar topics

6
by: Gav | last post by:
Hi All, I have created a datalist using the repeatcolumns property to create multiple columns. I have tried to keep everythings width to 100% so that if the window is resized it still looks...
1
by: bill yeager | last post by:
I have a radiobuttonlist inside a datalist. I also have a datagrid inside the datalist. The data and the controls are rendering just fine. However, I need to find these controls inside the...
0
by: Chris Fink | last post by:
I have the need to perform some javascript code on a rendered datalist. However, the problem is that the objects that I want to control via javascript have been given unique names when the datalist...
3
by: Kyong Kwak | last post by:
Hey all my second post! wanted to know if I can cache an entire control.. this is what I have.. Webform has header, nav, footer, and Usercontrol_1. Usercontrol_1 has a datalist and paging...
4
by: Lubomir | last post by:
Hi, I have a datalist in an aspx file. Everything was fine, and I just wanted to change a background color. Suddenly from a one moment, the datalist is not rendered on the screen anymore,...
3
by: GD | last post by:
I'm using a DataList and a Repeater (nested in the DataList) to display a list of "Chapters" and "Documents" within the Chapters. <asp:DataList ID="dlChapter" Runat="server" RepeatColumns="2"...
16
by: Vikas Kumar | last post by:
i am selectin some data from database and through reader showing it in datalist as above now for radio buttons i have single column which returns 1,2,3 and according to that i want one of above...
3
by: Sebastian Paul | last post by:
Hi, I registered a WebControlAdapter for any WebControl, that removes all ID attributes (I actually do not need them). Everything works as expected, but the DataList ignores any styles (ItemStyle,...
2
by: Paulo | last post by:
What is DetailsView, FormView, DataList, Repeater components? Any differences? VS 2005 asp.net C#
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...
0
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...
0
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...

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.