locked
how to use css file link that bundles in asp WebForm RRS feed

  • Question

  • User1746165319 posted

    hi there

    I bundles a css file and encrypted the link like below:

    before then I called css file like:

    <link herf="~/Styles/Site.css" rel="stylesheet" type="text-css">

    now how can i use the css file that encrypted ?

    Monday, October 7, 2013 3:45 PM

Answers

  • User465171450 posted

    This isn't an encrypted link. The v= parameter stands for version. It's there so when you update your bundle the v= information changes forcing the browsers to re-cache your bundled scripts.

    Usually this is done with the bundle manager, just like you did with the scripts bundle and then you use the @Styles.Render("~/bundle/css") or whatever your bundle name is. 

    A simple article on this is at: http://www.programering.com/a/MjM4ADMwATg.html

    And yes, before anyone mentions it I just realised I responded to a 7 month old post.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 10, 2014 10:21 PM