Slashdot Mirror


Poor Netscape/Mozilla Support in .NET

An anonymous reader submits: "I use Microsoft's .NET Framework at my place of employment to create website applications for the general public. I have noticed a number of issues that can make web applications developed in .NET incompatible with Netscape and Mozilla." Read on below for his specific complaints; have you encountered the same incompatibilities, and can you suggest any workarounds?

"The most egregious issue I have run into is this bug in .NET framework, that can prevent posts (the facility for the web browser to send information to the server) in Netscape and Mozilla (all versions) because MS used Internet Explorer specific Javascript. Microsoft buried a mention of a hotfix addressing the bug shortly after the first Framework Service Pack. However, the latest Service Pack (SP2) came out several months later and it still does not contain the fix. The only way to obtain the hotfix is to contact Microsoft's paid support. ("In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem" -- from the knowledgebase article). Keeping the patch as a hotfix that is not freely downloadable ensures that hosting providers will not have it installed.

A Unicode encoding issue in .NET can cause all fonts to display as squares instead of letters in Netscape 4. I am not saying that MS has to support NS4. I think the decision of whether or not to support Netscape 4 should be up to the developer, not Microsoft. MS describes a workaround in the knowledgebase article. (Anecdotally) all other web development environments I have seen allow proper code to work in Netscape without a workaround.

Standards-compliant websites utilizing most web-development platforms usually work fine in Netscape and Mozilla, even if the developer did not to test or develop for Netscape and/or Mozilla. However, Microsoft's .NET Framework inserts code and encodings into web applications that categorically break these browsers."

4 of 70 comments (clear)

  1. since nobody else can answer your question by Anonymous Coward · · Score: 4, Informative

    I will. Don't use the asp.net controls. use a standard control with the runat server attribute set to true. you will then be able to declare variables in the code behind file to manipulate them in code.

    Never use the built in validators. they're poorly written and don't work well.

    In general, the asp controls work ok if they're simple controls. Never depend on .NET to accurately render something complicated.

    Avoid the DataGrid control like the plague. Use repeater if you need to write a grid.

    the built in ASP.NET controls work well if you use ie 6 on XP as a client, and degrade from there.

  2. Learn to write your own .Net webcontrols by Utopia · · Score: 4, Informative

    A Unicode encoding issue in .NET can cause all fonts to display as squares instead of letters in Netscape 4

    This is because of Netscape 4's faulty handling of UTF-8 characters not a .NET issue.
    The default encoding in ASP.Net is UTF-8.
    You can change the default in your globally in web.config or per response in your aspx page.

  3. Yes, but... by DNAGuy · · Score: 4, Informative

    You are right that many of the "webControls" are not cross-browser compliant. It's also true that some of the aspx headers may not include your preferred character-encoding, doctype, etc. The good news is, you can still take advantage of the rest of the framework, and save the webcontrols for IE specific projects. You can develop your own usercontrols and provide the same level of integration with the IDE. Also, the IDE is excellent about leaving your ASPX (html) code alone. In my opinion, at the very least, it's no harder to build cross-browser apps in Visual Studio.Net than it is in any other IDE.

    --

    BRENT ROCKWOOD, EST'd 1975

  4. embrace, EXTEND, extinguish by Anonymous Coward · · Score: 1, Informative

    We're now on step 2.

    What morons adopted.NET? How many times are people going to fall for the same trick?