Arch4ngel Posted March 24, 2004 Posted March 24, 2004 I got some real problem with Netscape and ASP.NET. When I create a <asp:Label> from the toolbar... it work just fine and show all the text with IE... But when I try Netscape :-\ ... It seem that it just ... cut... So I think : "ASP.NET didn't send all the text" but... when I look at the source... It's there !!!!!! Why isn't working ? I know that Netscape create <table> when they see an <asp:panel> and they create <span> when they see <asp:label>... But I can't figure out why it's not working <%@ Page language="c#" Codebehind="SubscribeUpdate.aspx.cs" AutoEventWireup="false" Inherits="Location.SuscribeUpdate" clientTarget="downlevel"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>SuscribeUpdate</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="[url="http://schemas.microsoft.com/intellisense/nav4-0"]http://schemas.microsoft.com/intellisense/nav4-0[/url]" name="vs_targetSchema"> <LINK type="text/css" rel="stylesheet" src="location.css"> </HEAD> <body MS_POSITIONING="GridLayout"> <TABLE height="670" cellSpacing="0" cellPadding="0" width="138" border="0" ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="138" height="670"> <form id="Form1" method="post" runat="server"> <TABLE height="121" cellSpacing="0" cellPadding="0" width="658" border="0" ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="120" height="24"></TD> <TD width="144"></TD> <TD width="394"></TD> </TR> <TR vAlign="top"> <TD height="72"></TD> <TD colSpan="2"> <asp:Label id="Label1" runat="server" Width="536px" Height="48px">Label</asp:Label></TD> </TR> <TR vAlign="top"> <TD colSpan="2" height="25"></TD> <TD> <asp:Button id="Button1" runat="server" Width="224px" Text="S'abonner à la mailling list"></asp:Button></TD> </TR> </TABLE> </form> </TD> </TR> </TABLE> </body> </HTML> This is all my code. NB. : the Schema is set to Netscape Navigator 4 Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
wessamzeidan Posted March 31, 2004 Posted March 31, 2004 I've got similar problems too with Netscape. I have label that has its forecolor set to red. In IE it works fine, but in Netscape the text appears black..... Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
Aitmanga Posted March 31, 2004 Posted March 31, 2004 (edited) I also had a similar problem ,but with textboxes. What I did was to use a cssClass instead, and it worked fine Edited April 1, 2004 by Aitmanga Quote
*Gurus* Derek Stone Posted March 31, 2004 *Gurus* Posted March 31, 2004 Can we see the HTML document generated by the ASP.NET page? Quote Posting Guidelines
Arch4ngel Posted March 31, 2004 Author Posted March 31, 2004 Here is the generated code Can we see the HTML document generated by the ASP.NET page? ****In this example I solved my problem by enlarging cell width.**** <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>SuscribeUpdate</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="[url="http://schemas.microsoft.com/intellisense/nav4-0"]http://schemas.microsoft.com/intellisense/nav4-0[/url]" name="vs_targetSchema"> <LINK type="text/css" rel="stylesheet" href="location.css"> </HEAD> <body MS_POSITIONING="GridLayout"> <TABLE height="557" cellSpacing="0" cellPadding="0" width="200" border="0" ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="200" height="557"> <form name="Form1" method="post" action="SubscribeUpdate.aspx" id="Form1"> <input type="hidden" name="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" value="dDwtMTQwNzkwMTI1Nzt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjs+O2w8dDxwPHA8bDxXaWR0aDtUZXh0O18hU0I7PjtsPDE8NTAwcHg+O0VzdC1jZSBiaWVuIHZvdHJlIGNvZGUgTlQgOlw8Ylw+IG1heGltLnJvdWlsbGVyIFw8L2JcPj87aTwyNTY+Oz4+Oz47Oz47Pj47Pj47PhHtxTC1XIIYUI2W+HL8rysQ0Wmn" /> <script language="javascript"> <!-- function __doPostBack(eventTarget, eventArgument) { var theform; if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) { theform = document.forms["Form1"]; } else { theform = document.Form1; } theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument; theform.submit(); } // --> </script> <TABLE height="183" cellSpacing="0" cellPadding="0" width="545" border="1" ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="7" height="24"></TD> <TD width="9"></TD> <TD width="529"></TD> </TR> <TR vAlign="top"> <TD height="96"></TD> <TD colSpan="2"> <span id="Label1" style="height:48px;width:500px;">Est-ce bien votre code NT :<b> maxim.rouiller </b>?</span></TD> </TR> <TR vAlign="top"> <TD colSpan="2" height="40"></TD> <TD> <a id="lnkbtAjout" href="javascript:__doPostBack('lnkbtAjout','')" style="width:296px;">Ajoute moi à la liste de diffusion</a></TD> </TR> <TR vAlign="top"> <TD colSpan="2" height="23"></TD> <TD> <a id="lnkSupp" href="javascript:__doPostBack('lnkSupp','')" style="width:304px;">Enlève moi de la liste de diffusion</a></TD> </TR> </TABLE> </form> </TD> </TR> </TABLE> </body> </HTML> Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.