Browsers

Discussion in 'ASP .Net' started by Paulo, Aug 6, 2008.

  1. Paulo

    Paulo Guest

    Can asp.net detect what browser the user is running? Any fix should be done
    for each one?
     
    Paulo, Aug 6, 2008
    #1
    1. Advertising

  2. Paulo

    Paulo Guest

    The html generated by asp.net should be compatible with all browsers? There
    is no need fixing anything? Any articles...

    "Mark Rae [MVP]" <> escreveu na mensagem
    news:%...
    > "Paulo" <> wrote in message
    > news:...
    >
    >> Can ASP.NET detect what browser the user is running?

    >
    > http://msdn.microsoft.com/en-us/library/system.web.httprequest.browser.aspx
    >
    >> Any fix should be done for each one?

    >
    > What problems do you need fixing...?
    >
    >
    > --
    > Mark Rae
    > ASP.NET MVP
    > http://www.markrae.net
     
    Paulo, Aug 6, 2008
    #2
    1. Advertising

  3. Paulo

    Hans Kesting Guest

    After serious thinking Paulo wrote :
    > Can asp.net detect what browser the user is running? Any fix should be done
    > for each one?


    Asp.net does read the browserstring that the browser uses to identify
    itself. Note: sometimes the browser does not correctly identify itself
    (in Opera you can select how it should identify itself)!

    The builtin asp.net controls adjust themselves somewhat to the browser.

    See Request.Browser to use the info yourself. The properties of that
    object are based on the browserstring. So the Cookies value shows
    whether the browser should be able to accept cookies, not if the
    current browser has cookies switched off. Same for javascript.

    Hans Kesting
     
    Hans Kesting, Aug 6, 2008
    #3
  4. A lot of things can effect compatibility of your html output with browsers.
    Most of them have nothing to do with ASP.NET. The major concern is page
    layout. Once you start laying out more-or-less non-trivial designs, you will
    run into browser differences.

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin
    http://usableasp.net


    "Paulo" <> wrote in message
    news:%...
    > The html generated by asp.net should be compatible with all browsers?
    > There is no need fixing anything? Any articles...
    >
    > "Mark Rae [MVP]" <> escreveu na mensagem
    > news:%...
    >> "Paulo" <> wrote in message
    >> news:...
    >>
    >>> Can ASP.NET detect what browser the user is running?

    >>
    >> http://msdn.microsoft.com/en-us/library/system.web.httprequest.browser.aspx
    >>
    >>> Any fix should be done for each one?

    >>
    >> What problems do you need fixing...?
    >>
    >>
    >> --
    >> Mark Rae
    >> ASP.NET MVP
    >> http://www.markrae.net

    >
    >
     
    Eliyahu Goldin, Aug 6, 2008
    #4
  5. Paulo

    darrel Guest

    > The html generated by asp.net should be compatible with all browsers?
    > There is no need fixing anything? Any articles...


    Browser detection is usually a bad idea. Design standards compliant markup,
    and go from there.

    ASP.net 1.1 could make some pretty crappy HTML. ASP.net 2.0+ is better,
    though at times you still may want to not use the default HTML output of the
    controls and tweak it yourself.

    -Darrel
     
    darrel, Aug 6, 2008
    #5
    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. Harry Whitehouse
    Replies:
    3
    Views:
    446
    Harry Whitehouse
    Jul 22, 2003
  2. Jerry

    Web Browsers

    Jerry, Aug 2, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    451
  3. Alex
    Replies:
    4
    Views:
    423
    Teemu Keiski
    Aug 16, 2003
  4. Alex
    Replies:
    4
    Views:
    469
    Steven Campbell
    Aug 20, 2003
  5. El Kabong

    Browsers, browsers! Quo vadis?

    El Kabong, May 11, 2007, in forum: HTML
    Replies:
    23
    Views:
    933
    dorayme
    May 13, 2007
Loading...

Share This Page