By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,610 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,610 IT Pros & Developers. It's quick & easy.

Netscape?!

P: n/a
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;">aaaaaLabelb lahhhhhhhhhhh</span></TD>
</TR> </TABLE> </form> </TD> </TR> </TABLE> </body></HTML>
Nov 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On Sun, 29 Aug 2004 17:44:03 -0400, qqq <qq*@qqq.com> wrote:
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;">aaaaaLabelb lahhhhhhhhhhh</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...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2

P: n/a
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" <qq*@qqq.com> wrote in message
news:ei**************@TK2MSFTNGP11.phx.gbl...
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;">aaaaaLabelb lahhhhhhhhhhh</span></TD>
</TR> </TABLE> </form> </TD> </TR> </TABLE> </body></HTML>

Nov 18 '05 #3

P: n/a
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.
------
"Craig Deelsnyder" <cdeelsny@no_spam_4_meyahoo.com> wrote in message
news:opsdilp4rz75dg5d@g51y101...
On Sun, 29 Aug 2004 17:44:03 -0400, qqq <qq*@qqq.com> wrote:
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;">aaaaaLabelb lahhhhhhhhhhh</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...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 18 '05 #4

P: n/a
On Sun, 29 Aug 2004 21:37:18 -0400, qqq <qq*@qqq.com> wrote:
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" <cdeelsny@no_spam_4_meyahoo.com> wrote in message
news:opsdilp4rz75dg5d@g51y101...
On Sun, 29 Aug 2004 17:44:03 -0400, qqq <qq*@qqq.com> wrote:
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;">aaaaaLabelb lahhhhhhhhhhh</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...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET



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....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #5

P: n/a
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 [MVP]" <vapor at steaming post office> wrote in message
news:ej**************@TK2MSFTNGP15.phx.gbl...
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" <qq*@qqq.com> wrote in message
news:ei**************@TK2MSFTNGP11.phx.gbl...
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;">aaaaaLabelb lahhhhhhhhhhh</span></TD>
</TR> </TABLE> </form> </TD> </TR> </TABLE> </body></HTML>


Nov 18 '05 #6

P: n/a
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" <qq*@qqq.com> wrote in message
news:eA**************@TK2MSFTNGP15.phx.gbl...
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 [MVP]" <vapor at steaming post office> wrote in message
news:ej**************@TK2MSFTNGP15.phx.gbl...
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" <qq*@qqq.com> wrote in message
news:ei**************@TK2MSFTNGP11.phx.gbl...
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;">aaaaaLabelb lahhhhhhhhhhh</span></TD>
</TR> </TABLE> </form> </TD> </TR> </TABLE>
</body></HTML>



Nov 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.