HTTPS breaking Stylesheet

Discussion in 'General troubleshooting' started by AsciDev, Mar 18, 2014.

  1. Already spoke with DASP Support, who are great but this is dev issue.
    Don't understand it, Style sheet link request is not being blocked, but a usercontrol stylesheet reference is being broken.
    In http everything is fine. In https everything except for this is fine.

    Note- SSL certificate is currently expired, but doubt it is the cause.

    Thanks in advance.
     
  2. FrankC

    FrankC DiscountASP.NET Staff

    sorry.. not sure i understand the question.

    can you further elaborate? may be some example would do good.
     
  3. Hi,

    The UserControl, ascx, has it's own Stylesheet, and reference link. The cs file is hosted by the same URL space.
    It works fine but not when the site is accessed over https.
    Nothing else fails over https.

    Thank you for helping
     
  4. FrankC

    FrankC DiscountASP.NET Staff

    ok.. can you send me the URL that reproduce this?
     
  5. Hi,
    Normally the Menu/Usercontrol looks fine
    upload_2014-3-27_7-37-38.png

    upload_2014-3-27_7-32-29.png

    But after entering the site through https, the megamenu.css is not called, or the call never goes out. The GET does not appear.
     

    Attached Files:

  6. FrankC

    FrankC DiscountASP.NET Staff

  7. Hi Frank,

    Is there anyway to send the URL in a private message for this business.

    I've used Firefox and Google Dev tool and find that no GET request is ever made to megamenu.css, which is how the menu is a raw html list.
    I don't uderstand why the request is never sent.
     
  8. mjp

    mjp

    To send a private message just click the recipient's picture/avatar, then click, "Start a Conversation."
     
    RayH likes this.
  9. Thanks for the help, It's working using relative path.
    Originally I tried using ResolveURL and it wouldn't work for stylesheets.
    Why won't absolute path work? Because it's a usercontrol?
     
  10. FrankC

    FrankC DiscountASP.NET Staff

    because the browser won't load the css properly if you are using HTTP
     
  11. Hi Frank,
    I tried switching it to HTTPS absolute path.
     

Share This Page