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

page rendered differently between IE6 and IE7

Hi,

i made an application where a lot of radiobuttonlists are created
dynamically. Some are visible and others are hidden until the right
selectedvalue is chosen. Thsi works perfectly with IE7, Netscape, Firefox
...., but with IE6, there are big gaps between the radiobuttonlists.

I looked at the source of both browser versions, but there is no difference.
The difference is in the way of rendering the html code.

I suspect that this line of the source: <div style="height:5px"is
interpreted differently. I tried with height:1px" but there was no
difference in IE6. Only if i commented it the gap was closed. In IE7, this
line creates a little gap between the two radios.

I also noticed that a hidden radiobuttonlist is representd by this line
(with 2 </di!!)

<div align="left"
style="width:800px;height:0px">&nbsp;&nbsp;<br></div></div>

Here a sample of the code-behind:

rb(i) = New RadioButtonList
If Session("visible" & vlg) = "n" Then
rb(i).Visible = False
littd(i) = New LiteralControl("<div align=""left""
style=""width:800px;height:0px"">")
Else
littd(i) = New LiteralControl("<div align=""left""
style=""width:800px;background-color:lightsteelblue"">")
End If
frm.Controls.Add(littd(i))
If cond = False Then
lit = New LiteralControl("<div style=""height:5px"">")
frm.Controls.Add(lit)
End If
lit = New LiteralControl("</div>")
frm.Controls.Add(lit)

Thanks for help

Mich
Jul 4 '08 #1
1 1527
how different is it being rendered???

if you set the height/width as 5px, ie7 will do it 5px while ie6 will
stretch the div to the control size..
"Mich" <mi**@nomaol.erescreveu na mensagem
news:e$**************@TK2MSFTNGP03.phx.gbl...
Hi,

i made an application where a lot of radiobuttonlists are created
dynamically. Some are visible and others are hidden until the right
selectedvalue is chosen. Thsi works perfectly with IE7, Netscape, Firefox
..., but with IE6, there are big gaps between the radiobuttonlists.

I looked at the source of both browser versions, but there is no
difference. The difference is in the way of rendering the html code.

I suspect that this line of the source: <div style="height:5px"is
interpreted differently. I tried with height:1px" but there was no
difference in IE6. Only if i commented it the gap was closed. In IE7, this
line creates a little gap between the two radios.

I also noticed that a hidden radiobuttonlist is representd by this line
(with 2 </di!!)

<div align="left"
style="width:800px;height:0px">&nbsp;&nbsp;<br></div></div>

Here a sample of the code-behind:

rb(i) = New RadioButtonList
If Session("visible" & vlg) = "n" Then
rb(i).Visible = False
littd(i) = New LiteralControl("<div align=""left""
style=""width:800px;height:0px"">")
Else
littd(i) = New LiteralControl("<div align=""left""
style=""width:800px;background-color:lightsteelblue"">")
End If
frm.Controls.Add(littd(i))
If cond = False Then
lit = New LiteralControl("<div style=""height:5px"">")
frm.Controls.Add(lit)
End If
lit = New LiteralControl("</div>")
frm.Controls.Add(lit)

Thanks for help

Mich


Jul 7 '08 #2

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

Similar topics

3
by: usenet | last post by:
Hi All, I have some initialization to be done at page load time, which changes the text of some anchors so that they are consistent with the query string (these anchors are used as criteria...
2
by: Stephen Miller | last post by:
I have an ASPX report and I want to capture the rendered HTML and write to a file on the webserver. Several posts suggest using WebRequest to make a second call to the page, and screen-scrape the...
3
by: Jason Honn | last post by:
I have an .aspx page that renders fine in IE6, but it does not render properly in Firefox. If I change the extension from .aspx to .htm everything renders just fine in Firefox. The problem I am...
2
by: Ken Cox - Microsoft MVP | last post by:
I'm trying to find a way to program in ASP.NET 2.0 but capture the HTML output. I found the following routine in ASP.NET 2.0 Cookbook from O'Reilly. It doesn't work if I include a server-side...
5
by: homertbush | last post by:
When our asp.net pages are rendered out as html the page directive is still in the html. ie. The following page directive is present in the body of the html of the rendered page: <%@ Page...
0
by: sonic | last post by:
I am trying to dynamically load a validator and must be missing something elementary here. I extended TextBox control to add some functionality to it. One new feature it contains is IsRequired...
1
by: Itzik | last post by:
The simple situation that works: A form (ASP 2.0 Page) with Page.MaintainScrollPositionOnPostBack set to True as well as Page.EnableViewState defaults to True. As the form's data are submitted to...
1
by: | last post by:
I've built an application that scrapes JPG images of webpages and PDF instances of those webpages automatically from an RSS feed. References to the scraped resources are persisted to our database....
4
by: TS | last post by:
Steven, i lost this message conversation from outlook express and made a post online (see last one on this page). Please answer it as it hasn't been yet. thanks The clientID of our controls...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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.