Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2005, 12:34 PM
Registered User
 
Join Date: Jan 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET controls & Mozilla: Rendering Problems

I am a beginner, developing my first web site. Asp.Net controls have worked great when the web page is rendered using Internet Explorer. But with the Mozilla browser, I have had the following problems.

1. With Internet Explorer, the snippet of code below produces a text box 600 pixels wide. But with Mozilla, the text box is only about
180 pixels wide. (I have tried changing the width value to different widths, but I still get the same result.)

<asp:textbox id="txtComment" Runat="server" Width="600px" height="100px" MaxLength="2000" TextMode="MultiLine">

2. Here's another example that works fine on Internet Explorer but not with Mozilla. With Internet Explorer, the label is displayed as intended with red text surrounded by a red border. With Mozilla, the red text is displayed, but not the border.

<asp:label id="lblErrMsg" runat="server" Width="600px" ForeColor="#C00000" Font-Bold="True" BorderStyle="Double" BorderColor="#C00000">

Does anyone know how to solve these problems?

Many thanks for your help.

Harvey

 
Old April 11th, 2005, 10:36 AM
Registered User
 
Join Date: Apr 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to IceBreakerG Send a message via MSN to IceBreakerG Send a message via Yahoo to IceBreakerG
Default

Hi hgberman, i'm not 100% positive on this, but i believe the problem is that mozilla does not render controls correctly either way. Even when they're written in straight html. Here at work we have html pages that work fine in IE but do not show up correctly in mozilla. The only thing i can say is to keep working at it and try to find a way around it. Hopefully you'll find a way to get around it or live with it. We also have pages here that will not work in mozilla at all (it does not support ActiveX). I just tested one of the asp.net applications i'm working on now in firefox and for the most part, it showed up right, but it seems like it ignored some of my DIV tags because things that were supposed to be aligned certain ways were not aligned correctly (my Table is supposed to be centered on the page, but was Left Justified).

 
Old April 13th, 2005, 10:50 AM
Registered User
 
Join Date: Jan 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi IceBreakerG,
I guess I'll just learn to live with this problem. Maybe the next version of Mozilla will work better with Asp.Net.
Thanks for the feedback,
Harvey

 
Old April 30th, 2005, 12:27 PM
Registered User
 
Join Date: Jan 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found a solution to the first problem - getting Mozilla to use the correct width for a text box created in Visual Studio. In case anyone runs into a similar problem, here is how it can be solved. Visual Studio created the following HTML:

<asp:textbox id="txtComment" Runat="server" Width="600px" height="100px" MaxLength="2000" TextMode="MultiLine">

Mozilla did not recognize the Width property as shown above, but if you use the the following HTML instead, everything seems to work fine.

<asp:textbox id="txtComment" Runat="server" Width="600px" height="100px" MaxLength="2000" TextMode="MultiLine" style="height:100px;width:100%;">

The trick seems to be using the Width attribute of the style command, rather that the Width property generated by Visual Studio.

 
Old May 20th, 2005, 05:43 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is not working !

If is something wrong .... this is MS
 
Old January 17th, 2006, 12:45 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This seems to be a broser caps problem. If you have access to your system machine.config file, modify it with the details found here:
http://slingfive.com/pages/code/brow...eb_config.aspx

If you don't have access to the machine.config, just add it to your web.config file.



 
Old February 3rd, 2006, 06:41 PM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The solution to the problem with Mozilla browser is that we need to specify other attribute as Columns="600" to display textbox or some control of that width. Mozilla understands width in terms of Columns and height in terms of Rows.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems rendering to a table with sorted results jlmacdonald XSLT 6 March 27th, 2008 05:54 PM
XSLT rendering problems in IE7 for Vista tripecac XSLT 17 July 4th, 2007 10:07 AM
Having problems on Mozilla firefox (not able to se viral612 XSLT 0 March 12th, 2007 11:53 PM
Specific-browser Rendering by Web Controls mrf ASP.NET 2.0 Basics 0 August 24th, 2006 03:57 PM
The Mozilla & IE Problem webnitro HTML Code Clinic 8 January 19th, 2006 09:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.