Netscape?!

Q

qqq

I'm a relative newbie...

I'd like my site to support Netscape browsers. For a page I set
'TargetSchema' to 'IE 3.02/Netscape 3'. When I insert label or textbox web
controls on the page, they appear with no size/color/border attributes etc.
when viewed in Netscape. They appear just fine in IE.

Can someone please explain?

Thanks - Paul.
--
ps. how widely is Netscape used now?

Below is the html SENT TO NETSCAPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>testnetscape</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"
name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<TABLE height="696" cellSpacing="0" cellPadding="0" width="394" border="0"
ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="394" height="696">
<form name="Form1" method="post" action="testnetscape.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTU3ODAzNTQ4MDs7Ps/rt4uymImtDNzAtPeOgWAFiJM9" />

<TABLE height="377" cellSpacing="0" cellPadding="0" width="684"
border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="2" height="160"></TD>
<TD width="682"></TD>
</TR>
<TR vAlign="top">
<TD height="217"></TD>
<TD><span id="Label1">aaaaaLabelblahhhhhhhhhhh</span></TD>
</TR>
</TABLE>
</form>
</TD>
</TR>
</TABLE>
</body>
</HTML>
Here's the html SENT TO IE 6:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML> <HEAD> <title>testnetscape</title> <meta
content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta
content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"> <meta
content="JavaScript" name="vs_defaultClientScript"> <meta
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"
name="vs_targetSchema"> </HEAD> <body MS_POSITIONING="GridLayout"> <TABLE
height="696" cellSpacing="0" cellPadding="0" width="394" border="0"
ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="394" height="696">
<form name="Form1" method="post" action="testnetscape.aspx"
id="Form1"><input type="hidden" name="__VIEWSTATE"
value="dDwtMTU3ODAzNTQ4MDs7Ps/rt4uymImtDNzAtPeOgWAFiJM9" /> <TABLE
height="377" cellSpacing="0" cellPadding="0" width="684" border="0"
ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="2"
height="160"></TD> <TD width="682"></TD> </TR> <TR
vAlign="top"> <TD height="217"></TD> <TD><span id="Label1"
style="background-color:Lime;border-color:Red;border-width:2px;border-style:solid;height:216px;width:680px;">aaaaaLabelblahhhhhhhhhhh</span></TD>
</TR> </TABLE> </form> </TD> </TR> </TABLE> </body></HTML>
 
C

Craig Deelsnyder

I'm a relative newbie...

I'd like my site to support Netscape browsers. For a page I set
'TargetSchema' to 'IE 3.02/Netscape 3'. When I insert label or textbox
web
controls on the page, they appear with no size/color/border attributes
etc.
when viewed in Netscape. They appear just fine in IE.

Can someone please explain?

Thanks - Paul.
--
ps. how widely is Netscape used now?

Below is the html SENT TO NETSCAPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>testnetscape</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"
name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<TABLE height="696" cellSpacing="0" cellPadding="0" width="394"
border="0"
ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="394" height="696">
<form name="Form1" method="post" action="testnetscape.aspx"
id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTU3ODAzNTQ4MDs7Ps/rt4uymImtDNzAtPeOgWAFiJM9" />

<TABLE height="377" cellSpacing="0" cellPadding="0" width="684"
border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="2" height="160"></TD>
<TD width="682"></TD>
</TR>
<TR vAlign="top">
<TD height="217"></TD>
<TD><span id="Label1">aaaaaLabelblahhhhhhhhhhh</span></TD>
</TR>
</TABLE>
</form>
</TD>
</TR>
</TABLE>
</body>
</HTML>
Here's the html SENT TO IE 6:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML> <HEAD> <title>testnetscape</title> <meta
content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta
content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"> <meta
content="JavaScript" name="vs_defaultClientScript"> <meta
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"
name="vs_targetSchema"> </HEAD> <body MS_POSITIONING="GridLayout">
<TABLE
height="696" cellSpacing="0" cellPadding="0" width="394" border="0"
ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="394" height="696">
<form name="Form1" method="post" action="testnetscape.aspx"
id="Form1"><input type="hidden" name="__VIEWSTATE"
value="dDwtMTU3ODAzNTQ4MDs7Ps/rt4uymImtDNzAtPeOgWAFiJM9" /> <TABLE
height="377" cellSpacing="0" cellPadding="0" width="684" border="0"
ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="2"
height="160"></TD> <TD width="682"></TD> </TR> <TR
vAlign="top"> <TD height="217"></TD> <TD><span id="Label1"
style="background-color:Lime;border-color:Red;border-width:2px;border-style:solid;height:216px;width:680px;">aaaaaLabelblahhhhhhhhhhh</span></TD>
</TR> </TABLE> </form> </TD> </TR> </TABLE> </body></HTML>
Unless you need to support such old browsers, I wouldn't set the
targetSchema back. Netscape 4.8 was the last 'problematic' browser that
would make me consider the change IMHO. I would leave it set at IE5.0 and
then test and find any problems. Most of the code will work fine.

IMHO, you should ignore what was formerly known as Netscape; everything
from now on will be Firefox or thanks to AOL, Netscape 7.2 (the name is
back), which is based on the same engine as Firefox. They are very
standards-conforming, and work well with ASP.NET, very minimal rework
needed. They are the alternate browsers you should now target (and Opera!
:) ) Most well-written code works well in all these browsers, which all
have a share of the market...
 
A

Alvin Bruney [MVP]

ASP.NET does not write the correct HTML to non-IE browsers with the result
that styles attributes and other features do not work correctly. To correct
this, you should adjust the web config file accordingly. Here's a link from
Teemu Keiski to fix this problem:
http://www.mcse.ms/message904713.html
 
Q

qqq

Thanks Craig - I sincerely hope that you are right, but my testing suggests
otherwise... Even when I have the page TargetSchema set to IE5.0 (as you
suggest) it still sends 'minimal' html to Netscape for label controls - ie.
they lose all size/format attributes - as in my original sample. What gives
here?

Thanks, Paul.
------
 
C

Craig Deelsnyder

Thanks Craig - I sincerely hope that you are right, but my testing
suggests
otherwise... Even when I have the page TargetSchema set to IE5.0 (as you
suggest) it still sends 'minimal' html to Netscape for label controls -
ie.
they lose all size/format attributes - as in my original sample. What
gives
here?

Thanks, Paul.
------
Craig Deelsnyder said:
Unless you need to support such old browsers, I wouldn't set the
targetSchema back. Netscape 4.8 was the last 'problematic' browser that
would make me consider the change IMHO. I would leave it set at IE5.0
and
then test and find any problems. Most of the code will work fine.

IMHO, you should ignore what was formerly known as Netscape; everything
from now on will be Firefox or thanks to AOL, Netscape 7.2 (the name is
back), which is based on the same engine as Firefox. They are very
standards-conforming, and work well with ASP.NET, very minimal rework
needed. They are the alternate browsers you should now target (and
Opera!
:) ) Most well-written code works well in all these browsers, which
all
have a share of the market...

See Alvin's reply. It's been so long since I've done something like this;
I never set styles, etc. on controls this way (via properties). I always
use CSS classes to keep the styles separate from the html (hopefully). I
do remember this now from back when I first started in ASP.NET....
 
Q

qqq

Alvin - thanks for responding. I implemented your suggestion and it works
fine. Maybe I'm just naive, but can MS really have done such a bad job of
ASP.Net that even my extremely humble requirements break it?! Is there not
even an MSKB article on this? How come everybody doesn't fall foul of this
problem? What am I missing here?

Thanks, Paul.
------

Alvin Bruney said:
ASP.NET does not write the correct HTML to non-IE browsers with the result
that styles attributes and other features do not work correctly. To
correct this, you should adjust the web config file accordingly. Here's a
link from Teemu Keiski to fix this problem:
http://www.mcse.ms/message904713.html


--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
qqq said:
I'm a relative newbie...

I'd like my site to support Netscape browsers. For a page I set
'TargetSchema' to 'IE 3.02/Netscape 3'. When I insert label or textbox
web controls on the page, they appear with no size/color/border
attributes etc. when viewed in Netscape. They appear just fine in IE.

Can someone please explain?

Thanks - Paul.
--
ps. how widely is Netscape used now?

Below is the html SENT TO NETSCAPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>testnetscape</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"
name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<TABLE height="696" cellSpacing="0" cellPadding="0" width="394"
border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="394" height="696">
<form name="Form1" method="post" action="testnetscape.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTU3ODAzNTQ4MDs7Ps/rt4uymImtDNzAtPeOgWAFiJM9" />

<TABLE height="377" cellSpacing="0" cellPadding="0" width="684"
border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="2" height="160"></TD>
<TD width="682"></TD>
</TR>
<TR vAlign="top">
<TD height="217"></TD>
<TD><span id="Label1">aaaaaLabelblahhhhhhhhhhh</span></TD>
</TR>
</TABLE>
</form>
</TD>
</TR>
</TABLE>
</body>
</HTML>
Here's the html SENT TO IE 6:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML> <HEAD> <title>testnetscape</title> <meta
content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta
content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"> <meta
content="JavaScript" name="vs_defaultClientScript"> <meta
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"
name="vs_targetSchema"> </HEAD> <body MS_POSITIONING="GridLayout">
<TABLE height="696" cellSpacing="0" cellPadding="0" width="394"
border="0" ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="394"
height="696"> <form name="Form1" method="post" action="testnetscape.aspx"
id="Form1"><input type="hidden" name="__VIEWSTATE"
value="dDwtMTU3ODAzNTQ4MDs7Ps/rt4uymImtDNzAtPeOgWAFiJM9" /> <TABLE
height="377" cellSpacing="0" cellPadding="0" width="684" border="0"
ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="2"
height="160"></TD> <TD width="682"></TD> </TR> <TR
vAlign="top"> <TD height="217"></TD> <TD><span id="Label1"
style="background-color:Lime;border-color:Red;border-width:2px;border-style:solid;height:216px;width:680px;">aaaaaLabelblahhhhhhhhhhh</span></TD>
</TR> </TABLE> </form> </TD> </TR> </TABLE> </body></HTML>
 
A

Alvin Bruney [MVP]

I've been thinking about this ever since i ran into the problem. I think it
is a move to stifle competition, because the end effect is for non-IE
browsers to misbehave. Guess what that does? It drives away the competition.
Anyway, this behavior has been repaired in ASP 2.0.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
qqq said:
Alvin - thanks for responding. I implemented your suggestion and it works
fine. Maybe I'm just naive, but can MS really have done such a bad job of
ASP.Net that even my extremely humble requirements break it?! Is there not
even an MSKB article on this? How come everybody doesn't fall foul of this
problem? What am I missing here?

Thanks, Paul.
------

Alvin Bruney said:
ASP.NET does not write the correct HTML to non-IE browsers with the
result that styles attributes and other features do not work correctly.
To correct this, you should adjust the web config file accordingly.
Here's a link from Teemu Keiski to fix this problem:
http://www.mcse.ms/message904713.html


--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
qqq said:
I'm a relative newbie...

I'd like my site to support Netscape browsers. For a page I set
'TargetSchema' to 'IE 3.02/Netscape 3'. When I insert label or textbox
web controls on the page, they appear with no size/color/border
attributes etc. when viewed in Netscape. They appear just fine in IE.

Can someone please explain?

Thanks - Paul.
--
ps. how widely is Netscape used now?

Below is the html SENT TO NETSCAPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>testnetscape</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"
name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<TABLE height="696" cellSpacing="0" cellPadding="0" width="394"
border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="394" height="696">
<form name="Form1" method="post" action="testnetscape.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTU3ODAzNTQ4MDs7Ps/rt4uymImtDNzAtPeOgWAFiJM9" />

<TABLE height="377" cellSpacing="0" cellPadding="0" width="684"
border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="2" height="160"></TD>
<TD width="682"></TD>
</TR>
<TR vAlign="top">
<TD height="217"></TD>
<TD><span id="Label1">aaaaaLabelblahhhhhhhhhhh</span></TD>
</TR>
</TABLE>
</form>
</TD>
</TR>
</TABLE>
</body>
</HTML>
Here's the html SENT TO IE 6:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML> <HEAD> <title>testnetscape</title> <meta
content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta
content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"> <meta
content="JavaScript" name="vs_defaultClientScript"> <meta
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0"
name="vs_targetSchema"> </HEAD> <body MS_POSITIONING="GridLayout">
<TABLE height="696" cellSpacing="0" cellPadding="0" width="394"
border="0" ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="394"
height="696"> <form name="Form1" method="post"
action="testnetscape.aspx" id="Form1"><input type="hidden"
name="__VIEWSTATE"
value="dDwtMTU3ODAzNTQ4MDs7Ps/rt4uymImtDNzAtPeOgWAFiJM9" /> <TABLE
height="377" cellSpacing="0" cellPadding="0" width="684" border="0"
ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="2"
height="160"></TD> <TD width="682"></TD> </TR> <TR
vAlign="top"> <TD height="217"></TD> <TD><span id="Label1"
style="background-color:Lime;border-color:Red;border-width:2px;border-style:solid;height:216px;width:680px;">aaaaaLabelblahhhhhhhhhhh</span></TD>
</TR> </TABLE> </form> </TD> </TR> </TABLE>
</body></HTML>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top