Annoying flaw / bug in ASP.NET

Discussion in 'ASP .Net' started by nospam, Jun 6, 2005.

  1. nospam

    nospam Guest

    I think there is a flaw/bug in ASP.NET or IIS. I try to test my pages
    in Firefox Browser because it's better than IE (page source coloring,
    tabbed browsing, etc.) but the JavaScript that is generated for ASP.NET
    compile errors doesn't work on Firefox (try clicking on the JavaScript
    link to view the complete code). I'm using ASP.NET/C# on Windows XP
    Pro/IIS. I'm getting JavaScript errors from the ASP.NET generated
    JavaScript: "window.event has no properties."

    This is what it looks like (I don't know JavaScript) --

    <script language="JavaScript">
    function OnToggleTOCLevel1()
    {
    var elemSrc = window.event.srcElement;
    var elemLevel2 = document.all(elemSrc.level2ID);

    if (elemLevel2.style.display == 'none')
    {
    elemLevel2.style.display = '';
    if (elemSrc.usesGlyph == '1')
    elemSrc.innerHTML = '6';
    }
    else {
    elemLevel2.style.display = 'none';
    if (elemSrc.usesGlyph == '1')
    elemSrc.innerHTML = '4';
    }
    }
    </script>
     
    nospam, Jun 6, 2005
    #1
    1. Advertising

  2. nospam

    Scott Allen Guest

    This looks like the source you'd see if there is a compiler error on
    the ASPX page.

    My suggestion would be to view the page in IE until you can fix the
    compiler error. All of the basic ASP.NET controls work pretty well
    with FireFox, I think, although I have not done extensive testing in
    that area.

    --
    Scott
    http://www.OdeToCode.com/blogs/scott/

    On Sun, 05 Jun 2005 19:34:06 -0400, nospam <>
    wrote:

    >I think there is a flaw/bug in ASP.NET or IIS. I try to test my pages
    >in Firefox Browser because it's better than IE (page source coloring,
    >tabbed browsing, etc.) but the JavaScript that is generated for ASP.NET
    >compile errors doesn't work on Firefox (try clicking on the JavaScript
    >link to view the complete code). I'm using ASP.NET/C# on Windows XP
    >Pro/IIS. I'm getting JavaScript errors from the ASP.NET generated
    >JavaScript: "window.event has no properties."
    >
    >This is what it looks like (I don't know JavaScript) --
    >
    ><script language="JavaScript">
    >function OnToggleTOCLevel1()
    >{
    > var elemSrc = window.event.srcElement;
    > var elemLevel2 = document.all(elemSrc.level2ID);
    >
    > if (elemLevel2.style.display == 'none')
    > {
    > elemLevel2.style.display = '';
    > if (elemSrc.usesGlyph == '1')
    > elemSrc.innerHTML = '6';
    > }
    > else {
    > elemLevel2.style.display = 'none';
    > if (elemSrc.usesGlyph == '1')
    > elemSrc.innerHTML = '4';
    > }
    >}
    ></script>
     
    Scott Allen, Jun 6, 2005
    #2
    1. Advertising

  3. nospam

    nospam Guest

    Scott Allen wrote:
    > This looks like the source you'd see if there is a compiler error on
    > the ASPX page.
    >
    > My suggestion would be to view the page in IE until you can fix the
    > compiler error. All of the basic ASP.NET controls work pretty well
    > with FireFox, I think, although I have not done extensive testing in
    > that area.
    >
    > --
    > Scott
    > http://www.OdeToCode.com/blogs/scott/


    I realize that the solution is to view the page in IE. I'm just
    pointing out that there is a bug. One thing that I have noticed is that
    ASPX pages often only display correctly in IE and not in Firefox. I
    would just write it off to bad programming but it's something that I
    find very often and even in books like Beginning ASP.NET 1.1 in C# by
    Matthew MacDonald (which I am learning from). I am running the sample
    code in Firefox and some of it doesn't display correctly.
     
    nospam, Jun 6, 2005
    #3
  4. That is most likely caused by your Browsercaps section
    in either machine.config or web.config not having an
    appropiate entry for Firefox, .

    Go to : http://slingfive.com/pages/code/browserCaps/browserCaps_spaces.txt
    and modify your application's web.config or your server's machine.config
    per the code at that page and that should allow browsing your websites
    with Firefox, Mozilla, Konqueror, Opera and Mac's Safari browser.



    Juan T. Llibre
    ASP.NET MVP
    http://asp.net.do/foros/
    Foros de ASP.NET en Español
    Ven, y hablemos de ASP.NET...
    ======================

    "nospam" <> wrote in message
    news:...
    > Scott Allen wrote:
    >> This looks like the source you'd see if there is a compiler error on
    >> the ASPX page. My suggestion would be to view the page in IE until you can fix the
    >> compiler error. All of the basic ASP.NET controls work pretty well
    >> with FireFox, I think, although I have not done extensive testing in
    >> that area. --
    >> Scott
    >> http://www.OdeToCode.com/blogs/scott/

    >
    > I realize that the solution is to view the page in IE. I'm just pointing out that there
    > is a bug. One thing that I have noticed is that ASPX pages often only display correctly
    > in IE and not in Firefox. I would just write it off to bad programming but it's
    > something that I find very often and even in books like Beginning ASP.NET 1.1 in C# by
    > Matthew MacDonald (which I am learning from). I am running the sample code in Firefox
    > and some of it doesn't display correctly.
     
    Juan T. Llibre, Jun 6, 2005
    #4
  5. nospam

    clintonG Guest

    I concur with Señor Libre. By default ASP.NET does not even know Firefox and
    thus it would be considered as a downlevel browser.

    <%= Clinton Gallagher
    METROmilwaukee (sm) "A Regional Information Service"
    NET csgallagher AT metromilwaukee.com
    URL http://metromilwaukee.com/
    URL http://clintongallagher.metromilwaukee.com/




    "Juan T. Llibre" <> wrote in message
    news:...
    > That is most likely caused by your Browsercaps section
    > in either machine.config or web.config not having an
    > appropiate entry for Firefox, .
    >
    > Go to : http://slingfive.com/pages/code/browserCaps/browserCaps_spaces.txt
    > and modify your application's web.config or your server's machine.config
    > per the code at that page and that should allow browsing your websites
    > with Firefox, Mozilla, Konqueror, Opera and Mac's Safari browser.
    >
    >
    >
    > Juan T. Llibre
    > ASP.NET MVP
    > http://asp.net.do/foros/
    > Foros de ASP.NET en Español
    > Ven, y hablemos de ASP.NET...
    > ======================
    >
    > "nospam" <> wrote in message
    > news:...
    >> Scott Allen wrote:
    >>> This looks like the source you'd see if there is a compiler error on
    >>> the ASPX page. My suggestion would be to view the page in IE until you
    >>> can fix the
    >>> compiler error. All of the basic ASP.NET controls work pretty well
    >>> with FireFox, I think, although I have not done extensive testing in
    >>> that area. --
    >>> Scott
    >>> http://www.OdeToCode.com/blogs/scott/

    >>
    >> I realize that the solution is to view the page in IE. I'm just pointing
    >> out that there is a bug. One thing that I have noticed is that ASPX
    >> pages often only display correctly in IE and not in Firefox. I would
    >> just write it off to bad programming but it's something that I find very
    >> often and even in books like Beginning ASP.NET 1.1 in C# by Matthew
    >> MacDonald (which I am learning from). I am running the sample code in
    >> Firefox and some of it doesn't display correctly.

    >
    >
     
    clintonG, Jun 6, 2005
    #5
  6. A bug is when an application does not behave as designed. What you are
    describing is not a bug. In fact, it is perfectly possible to design ASP.Net
    pages that work well in all browsers. But you have to know a bit more about
    ASP.Net, as well as browsers, in order to do so.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    Ambiguity has a certain quality to it.

    "nospam" <> wrote in message
    news:...
    > Scott Allen wrote:
    >> This looks like the source you'd see if there is a compiler error on
    >> the ASPX page. My suggestion would be to view the page in IE until you
    >> can fix the
    >> compiler error. All of the basic ASP.NET controls work pretty well
    >> with FireFox, I think, although I have not done extensive testing in
    >> that area. --
    >> Scott
    >> http://www.OdeToCode.com/blogs/scott/

    >
    > I realize that the solution is to view the page in IE. I'm just pointing
    > out that there is a bug. One thing that I have noticed is that ASPX pages
    > often only display correctly in IE and not in Firefox. I would just write
    > it off to bad programming but it's something that I find very often and
    > even in books like Beginning ASP.NET 1.1 in C# by Matthew MacDonald (which
    > I am learning from). I am running the sample code in Firefox and some of
    > it doesn't display correctly.
     
    Kevin Spencer, Jun 6, 2005
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin

    ASP.Net design flaw!?

    Kevin, Jan 22, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    923
    Kevin
    Jan 27, 2004
  2. =?Utf-8?B?QW5kcsOpIFNpbHZh?=

    ASP.NET 2.0 / VS.NET 2005 ANNOYING BUG

    =?Utf-8?B?QW5kcsOpIFNpbHZh?=, Feb 25, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    773
    =?Utf-8?B?QW5kcsOpIFNpbHZh?=
    Apr 8, 2006
  3. =?ISO-8859-1?Q?Christian_Engstr=F6m?=

    non-const function return values: gcc bug or language flaw?

    =?ISO-8859-1?Q?Christian_Engstr=F6m?=, Feb 7, 2004, in forum: C++
    Replies:
    19
    Views:
    1,163
    tom_usenet
    Feb 10, 2004
  4. binding - DropDownList flaw/bug?

    , Jun 24, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    138
  5. Replies:
    2
    Views:
    300
    Rick Johnson
    Dec 25, 2012
Loading...

Share This Page