469,641 Members | 1,129 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,641 developers. It's quick & easy.

Adaptive Rendering Issue

Hello,

AFIAK ASP.NET (1.1) uses a technology called 'Adpative Rendering' to output
HTML that is compliant with the client browser or at least stick to HTML 4
specification or IE.

This seems to be quite a problem for me. I have HTML output for Mozilla that
has missing style attribute in list boxes and buttons and my layout seems
crappy. If I save the HTML that comes for IE and open the file with Mozilla
everything seems correct.

So it's seems that If I disable the Adaptive Rendering feature and make it
render as compliant with IE it will work fine for my page. How can I do
this?

Still I don't consider this way to be correct. Can I workaround this
completely if I use CSS class?

Thanks for your time,
Nacho
Nov 19 '05 #1
4 1616
You would need to provide sample code that shows an example of this
happening. I seldom experience any problems with this because I do
several things.
#1 - I specify a FULL DTD at the top of each web browser page forcing
IE to not operate in "quirks mode". This means that its rendering will
be more compliant with other compliant browsers.
#2 - Try avoiding using certain controls. From my experience the
controls that most notably change the most under alternate browsers are
the asp:Panel, asp:Label. In cases like this you should use <label,
<div or <span respectively and jsut add a runat="server" attribute to
them.
#3 - I try specfing as many attributes as possible through CSS classes
or through the .Style property programmatically.

If neither of the above tips helps and youa re still experiencing
problems you should post sample output from both browsers and related
code and markup.

Nov 19 '05 #2
in machine.config you will find a <browserCaps> section, you can update this
to improve the rendering. or looking at the agent string force uplevel
support yourself.

if ("netscape|gecko|opera".IndexO*f
(this.Request.Browser.Browser.*ToLower()) >= 0 )
this.ClientTarget = "Uplevel";
-- bruce (sqlwork.com)

"Nacho Nachev" <no@spam.now> wrote in message
news:u$**************@TK2MSFTNGP14.phx.gbl...
Hello,

AFIAK ASP.NET (1.1) uses a technology called 'Adpative Rendering' to
output HTML that is compliant with the client browser or at least stick to
HTML 4 specification or IE.

This seems to be quite a problem for me. I have HTML output for Mozilla
that has missing style attribute in list boxes and buttons and my layout
seems crappy. If I save the HTML that comes for IE and open the file with
Mozilla everything seems correct.

So it's seems that If I disable the Adaptive Rendering feature and make it
render as compliant with IE it will work fine for my page. How can I do
this?

Still I don't consider this way to be correct. Can I workaround this
completely if I use CSS class?

Thanks for your time,
Nacho

Nov 19 '05 #3
In addition to this, if you google updated browser caps you will find more
complete browser caps.
Nov 19 '05 #4


Thank you all! I included the ClientTaget check in my base page class and
for now it works fine for me.

Nacho
Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

28 posts views Thread by Lachlan Hunt | last post: by
3 posts views Thread by M D | last post: by
12 posts views Thread by Brad | last post: by
reply views Thread by Jeff Morgan | last post: by
3 posts views Thread by UJ | last post: by
3 posts views Thread by SAL | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.