locked
CSS and JS is not working in MVC RRS feed

  • Question

  • User-118859203 posted

    Hi there,

    I have created simple view and add css and js into it. It's working fine , but when I have added css and js into layout page its not working.

    Any suggestion? Thanks!

    Thursday, January 10, 2019 3:17 AM

Answers

  • User-552477072 posted

    please mention the libraries you have added here

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 10, 2019 4:32 AM
  • User-552477072 posted

    You should remove one of libraries mentioned below and it should be good to go.

    @Scripts.Render("~/Scripts/jquery-1.10.2.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/jquery.min.js")

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 10, 2019 5:50 AM

All replies

  • User-552477072 posted

    please mention the libraries you have added here

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 10, 2019 4:32 AM
  • User-118859203 posted

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/Scripts/jquery-1.10.2.js")


    @Scripts.Render("~/Content/Metronic/global/plugins/jquery.min.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/bootstrap/js/bootstrap.min.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/js.cookie.min.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/jquery.blockui.min.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/uniform/jquery.uniform.min.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js")


    @Scripts.Render("~/Content/Metronic/global/scripts/app.min.js")

    @Scripts.Render("~/Content/Metronic/layouts/layout/scripts/layout.min.js")
    @Scripts.Render("~/Content/Metronic/layouts/layout/scripts/demo.min.js")
    @Scripts.Render("~/Content/Metronic/layouts/global/scripts/quick-sidebar.min.js")

    Thursday, January 10, 2019 4:35 AM
  • User-552477072 posted

    You should remove one of libraries mentioned below and it should be good to go.

    @Scripts.Render("~/Scripts/jquery-1.10.2.js")
    @Scripts.Render("~/Content/Metronic/global/plugins/jquery.min.js")

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 10, 2019 5:50 AM