ASP application not displaying correctly in IE 7 and firefox

Last post 05-14-2008 2:57 AM by blodfox777. 7 replies.

Sort Posts:

  • ASP application not displaying correctly in IE 7 and firefox

    05-13-2008, 8:38 AM
    • Member
      point Member
    • red_devil47
    • Member since 05-13-2008, 12:36 PM
    • Posts 3

    I'm working with an asp application that was created using Visual Studio 2005.  It displays with no problems on IE 6 but when the user pulls it up using IE 7 or firefox items are not sized correctly and they are on top of each other.  Not sure why this is happening.  Any help is appreciated.  Thanks.

  • Re: ASP application not displaying correctly in IE 7 and firefox

    05-13-2008, 8:57 AM
    • All-Star
      77,975 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,600
    • Moderator
      TrustedFriends-MVPs

    It's happening because those browsers are interpreting your presentation code differently.

    Jeff

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: ASP application not displaying correctly in IE 7 and firefox

    05-13-2008, 2:13 PM
    • Member
      point Member
    • red_devil47
    • Member since 05-13-2008, 12:36 PM
    • Posts 3

    Where do I begin looking in order to resolve the issue?  I also have a few of the pages using a Master page.  I found a solution that told me to remove the following:

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

     

    That didn't work though.

  • Re: ASP application not displaying correctly in IE 7 and firefox

    05-13-2008, 2:28 PM
    • All-Star
      77,481 point All-Star
    • NC01
    • Member since 08-26-2005, 3:33 PM
    • Posts 14,447
    • TrustedFriends-MVPs

    Are you using CSS? If so you can dynamically change your stylesheet depending on the browser. See here:
    http://www.vikramlakhotia.com/Dynamically_changing_themes_and_applying_styles_in_aspnet_20.aspx

    NC...

  • Re: ASP application not displaying correctly in IE 7 and firefox

    05-13-2008, 2:43 PM
    • Member
      point Member
    • red_devil47
    • Member since 05-13-2008, 12:36 PM
    • Posts 3
    Not using CSS and don't plan on it b/c there are many pages I would need to update.  Is there another way?
  • Re: ASP application not displaying correctly in IE 7 and firefox

    05-13-2008, 2:49 PM
    • All-Star
      77,481 point All-Star
    • NC01
    • Member since 08-26-2005, 3:33 PM
    • Posts 14,447
    • TrustedFriends-MVPs

    Not to my knowledge. You'd need to check the browser version (Request.Browser.Version will give you that) and move your controls around accordingly, which seems harder than using CSS. There is no "magic" way.

    NC...

     

  • Re: ASP application not displaying correctly in IE 7 and firefox

    05-13-2008, 8:27 PM
    • Participant
      1,037 point Participant
    • bubblesnout
    • Member since 08-08-2007, 10:54 PM
    • Posts 238

    Short answer: Use CSS. It isn't that difficult to learn, and in the long run it's going to be much more helpful. Different browsers interpret web pages differently. It sucks, but thats the fact, and we all have to deal with it. Try looking at specific problems and asking around, as I'm sure the issues you're having have been hit and solved by others.

  • Re: ASP application not displaying correctly in IE 7 and firefox

    05-14-2008, 2:57 AM
    Answer
    • Participant
      1,092 point Participant
    • blodfox777
    • Member since 07-12-2007, 8:30 AM
    • Posts 159

    Hi

    if you have decided to use css

    I think the following url will helps:

    http://www.w3cn.org/article/tips/2006/images/css_buglist.gif

    Regards!

    -- "Mark As Answer" If my reply helped you --
Page 1 of 1 (8 items)