home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

ASP.Net - Mozilla Issues

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1440
Discussions: 200,927, Posts: 2,379,139, Members: 246,294
Old March 17th, 2005, 10:42 AM   Digg it!   #1 (permalink)
Member
 
Join Date: Jul 2003
Posts: 122
ASP.Net - Mozilla Issues

I'm working on a project in ASP.Net and I have it pretty much done and working perfectly in IE. When I open it in Firefox, my labels that have a background color of a specific code (blue) and white foreground do not show up. I look at the source, and it seems that the server is not sending the backcolor property for the label. Why is that? Can Mozilla not handle backcolors for labels? Is the server just not recognizing the browser and sending 'safe' HTML? How can I get around this issue?
wctyler is offline   Reply With Quote
Old March 17th, 2005, 11:14 AM     #2 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
If you are developing your ASP.NET application in a Microsoft development environment, dragging and dropping form elements on the main form, then you are going to have Microsoft proprietary HTML elements that only Internet Explorer can decipher. You are going to have to dig deap in the html code and fix it to make it work properly in all other browsers. It isn't just other browsers too but you must take into account other operating systems that use different font specifications. Trying looking at your site in Linux! You might pull your hair out!

Go here to validate and fix your html: http://validator.w3.org/

W3C has standardized HTML code into different formats that are world-wide recognized that if properly followed will work for all browsers.

Some of these HTML standards are:

XHTML 1.0
XHTML 1.0 is the W3C's first Recommendation for XHTML, following on from earlier work on HTML 4.01, HTML 4.0, HTML 3.2 and HTML 2.0. With a wealth of features, XHTML 1.0 is a reformulation of HTML 4.01 in XML, and combines the strength of HTML 4 with the power of XML.

HTML 4.01
HTML 4.01 is a revision of the HTML 4.0 Recommendation first released on 18th December 1997. The revision fixes minor errors that have been found since then. The XHTML 1.0 spec relies on HTML 4.01 for the meanings of XHTML elements and attributes. This allowed us to reduce the size of the XHTML 1.0 spec very considerably.

You can learn how to code in these standards here:
http://www.w3.org/MarkUp/


Using Topstyle: http://www.bradsoft.com/topstyle/

has saved the hassle for me in creating good solid XHTML documents that work in all browsers and have tested out good in other OS's as well. You can add your .NET stuff after you have created your design. Using XHTML with CSS does some amazing things...

Hope that helps!

Last edited by Iturea : March 17th, 2005 at 11:33 AM.
Iturea is offline   Reply With Quote
Old March 17th, 2005, 11:27 AM     #3 (permalink)
Member
 
Join Date: Jul 2003
Posts: 122
I could buy that if the label backcolor was actually being sent to the Mozilla browser, but when I 'view source' in the Mozilla browser, the code isn't in there. That would lead me to believe that it's not an issue with the html being proprietary, but rather the server not sending the code to the browser at all.

I'm trying to figure out how to either determine if the browser is mozilla and change the color to black, or to force it to send a background color regardless of browser type.

The code that the server sends the Mozilla browser is:
Code:
<span id="lblBar" style="Z-INDEX: 110; LEFT: 8px; POSITION: absolute; TOP: 112px"><b><font face="Verdana" color="White" size="2"></font></b></span>
The code that the server sends IE is:
Code:
<span id="lblBar" style="color:White;background-color:#637FB7;font-family:Verdana;font-size:X-Small;font-weight:bold;width:562px;Z-INDEX: 110; LEFT: 8px; POSITION: absolute; TOP: 112px"></span>
edit: The way ASP.Net is supposed to work..... the server should format the html to suit the browser.... it may sent MS style HTML to IE, but it shouldn't send that to Mozilla or any other browser.

Last edited by wctyler : March 17th, 2005 at 11:32 AM.
wctyler is offline   Reply With Quote
Old March 17th, 2005, 11:45 AM     #4 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
Try this:

It looks like the <span id="lblBar"> is at least present on both Mozilla and IE so then create a css style sheet and take out the style="" attribute all together in the span element. then in your style do something like this:

.lblBar {
color:White;
background-color:#637FB7;
font-family:Verdana;
font-size:X-Small;
font-weight:bold;
width:562px;
Z-INDEX: 110;
LEFT: 8px;
POSITION: absolute;
TOP: 112px;
}

Then create the tag: <span id="lblBar" class="lblBar"> </span>


--------------------------------------------------------

or

span#lblBar {
color:White;
background-color:#637FB7;
font-family:Verdana;
font-size:X-Small;
font-weight:bold;
width:562px;
Z-INDEX: 110;
LEFT: 8px;
POSITION: absolute;
TOP: 112px;
}

Then create the tag: <span id="lblBar"> </span>


----------------------------------------------

Or you could just do an inline style defined on the same document. Anyways good luck....

here is a style reference that may help: http://www.tizag.com/cssT/cssid.php

---------------------------------------------

I don't understand the whole server client relationship that ASP.NET uses cause I have never used .net anything before so what I am saying probably doesn't apply.

Last edited by Iturea : March 17th, 2005 at 11:57 AM.
Iturea is offline   Reply With Quote
Old March 17th, 2005, 12:52 PM     #5 (permalink)
Member
 
Join Date: Jul 2003
Posts: 122
A co-worker and I were brainstorming on this and thought of the same thing you came up with.... the stylesheet change. Since I'm not actually creating the tag, I need to figure out how to point objects in the IDE to the stylesheet, and how to work with stylesheets in the first place, but I think that may do the trick. This whole ASP.Net thing is a real learning experience.
wctyler is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handy Mozilla tip... OuTpaTienT Applications and Operating Systems 3 July 13th, 2003 03:37 AM
Odd Mozilla problem Theophylact Networking and Internet 4 April 17th, 2003 09:37 AM
Mozilla and now Phoenix fyxxer32 Applications and Operating Systems 4 March 26th, 2003 08:02 PM
Mozilla and BulletProof FTP Mortis Applications and Operating Systems 6 February 26th, 2003 03:49 PM
Mozilla Newbie Question(s) Tazman Applications and Operating Systems 2 August 23rd, 2002 05:55 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2867)
Is the PSU I received dead? (10)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Foreign voltage (10)
Print spooler problem (13)
Install XP pro and a Vista laptop ?.. (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (15)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
World's largest Monopoly Game using.. (331)
Modern Warfare 2: Who Bought It? (61)
Recent Discussions
Fire in DVD (2)
Regular Build (0)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Install XP pro and a Vista laptop ?? (10)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)
EVGA 9800 gtx help with finding a goo.. (8)
Problem with speed step/turbo boost? (1)
Modern Warfare 2: Who Bought It? (61)


All times are GMT -4. The time now is 02:44 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28