473,804 Members | 3,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="PAGECONTENT Label" runat="server"
Text='<%# Eval("PAGECONTE NT") %>' Width="100%"></asp:Label>
</ItemTemplate>
<SeparatorTempl ate>
<hr />
</SeparatorTempla te>
<ItemStyle />
</asp:DataList>
</form>

I guess there som css needed?
Regards

L-E Eriksson
Mar 15 '07 #1
1 2171
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="PAGECONTENT Label" runat="server"
Text='<%# Eval("PAGECONTE NT") %>' Width="100%"></asp:Label>
</ItemTemplate>
<SeparatorTempl ate>
<hr />
</SeparatorTempla te>
<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
7656
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 alright. However with these repeating columns it throws everything out of align because it lets you scroll horizontally but everything else on the page stops where the original right side was. Is there a way it can be set up so that you say repeat...
1
3630
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 datalist in order to programatically perform some logic. I have the following in my HTML which is inside the ItemTemplate of the datalist:
0
1261
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 is rendered, for example, txtInput control in my datalist item template is now called txtInput_ctl59 since .Net has to give each input box a unique ID when rendering. So my question is, how to I use javascript to control the dom from a rendered...
3
1703
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 items ( prev, current page, next ). I wanted to output cache for each "page" of the datalist, but I can't seem to get it to work ( any suggestions? ). It would only cache at the usercontrol level. so I'd get the header, nav, foot, and...
4
1298
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, while the application is running. When I check source output, there is no code for a datalist (table). I don’t understand what happened, as the HTML code seems to be fine.
3
1426
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" RepeatDirection="Vertical" OnItemDataBound="dlChapter_OnItemDataBound"> <ItemTemplate> <table> <tr> <td colspan="2"><%# DataBinder.Eval(Container.DataItem, "ChapterName")%></td>
16
12153
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 radio button to be preselected in this datalist how can i do that doing something like this but this gives error "The type or namespace name 'rdbtn' could not be found (are you missing a using directive or an assembly reference?)" as its in datalist
3
2243
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, SelectedItemStyle etc.). The DataList works as usual, i.e. it uses the SelectedItemTemplate for the selected item. Other controls, such as the TreeView, apply their styles properly. Any idea what's going wrong? It seems like a bug for me....
2
11845
by: Paulo | last post by:
What is DetailsView, FormView, DataList, Repeater components? Any differences? VS 2005 asp.net C#
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
10586
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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...
0
5525
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
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.