Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Problem rendering textbox


Message #1 by "John Ritchie" <jcriv@a...> on Thu, 29 Aug 2002 22:00:18
Hi Everyone,

I have a webform that I developed using  VS.Net.  It has a multiline 'textbox'
which is scrollable and several buttons.  The textbox is rather large as I
want 
scroll a report in it.  This all works fine when I use  IE6 as the browser.
 When
I use Netscape 6.2 the text box is rendered in a minute fashion.  It's
still scrollable and
contains the report text but is useless otherwise.  After banging my head
around with this for
few hours I hit the 'view source' on both browsers and printed the results.
 Sure enough
the textbox code is being rendered differently.  Basically, for Netscape
6.2 the 'height' and
'width' directives are left off of the Netscape version.  See code below.

At first I thought the Microsoft was really smart being able to figure out
that Netscape
can't understand the 'height' and 'width' directives but that is not ture
either.  I saved
the code rendered for IE6 to and .htm  file and opened it directly with
Netscape and it
drew the textbox the correct way with no complaints..

Does anyone know why this might be happening?  Is the some config setting
required to
make this work with Netscape?  Is this a .NET bug?  If so, anyone know how
to report it
to Bill?

Thanks,
John Ritchie



Code below as viewed from the browser  'view source'.



*** Generated for Netscape 6 by an VS.NET   asp.net app


<html>
<head>
<title>RepView</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</head>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="RepView.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTQ5MjM0ODgyMzs7Pmh+SvgODqo7ZHu4Q2GnxfwrJRKM" />

<textarea name="TextBox1" wrap="off" readonly="readonly" id="TextBox1"
style="Z-INDEX: 101; LEFT: 2px; POSITION: absolute; TOP: 37px">


Part Description Report                 Dash Group Demo                   
                                      Page: 1
                                            8/29/2002 11:31:22 AM         
         
 
Part Numer                     Descripcion                              ATA
     AcType  PartType   Qty   Min   Max
0.128X253X3/16                 BEARING                                  72
                     5     12     2    40
00-10-009                      BATTERY, ELT (GENAV)                     72
      GENAV         10     14     2    40




*** Generated for IE 6   by the same app  (everything up to here was
identical) 

<textarea name="TextBox1" wrap="off" readonly="readonly" id="TextBox1"
style="border-style:Ridge;font-size:Smaller;height:423px;width:992px;Z-INDEX:
101; LEFT: 2px; POSITION: absolute; TOP: 37px">
Part Description Report                 Dash Group Demo                   
                                      Page: 1
                                            8/29/2002 11:36:04 AM         
         
 
Part Numer                     Descripcion                              ATA
     AcType  PartType   Qty   Min   Max
0.128X253X3/16                 BEARING                                  72
                     5     12     2    40
00-10-009                      BATTERY, ELT (GENAV)                     72
      GENAV         10     14     2    40

  Return to Index