Setting content type to application/xhtml+xml breaks LoginStatus control

Discussion in 'ASP.NET 2.0' started by jamesgurung, Jul 8, 2007.

  1. I am posting with regard to www.bodeites.com. At the top of every page there is a LoginStatus control giving the option to sign in or out of the site. It has always worked fine, but today I modified global.asax to serve Firefox (and other compatible browsers) the content type 'application/xhtml+xml'. This comes as part of my attempt to make the site XHTML 1.1 compatible. Now the 'Login' link at the top of the page (which is generated by the LoginStatus control) no longer does anything when clicked.

    If I comment out the lines I added in global.asax, full functionality returns. Also the link works fine in Internet Explorer, probably because it is still served 'text/html'.

    Is there any way I can fix this?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    I don't think you can fix this. This is how it should work.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Okay, thanks. That's good to know.
     

Share This Page