1

I am using mvc and in some views i don't need to load jquery files from _layout

So I need to stop loading Jquery files from _layout view in ASP.NET MVC

1 Answer 1

1

You can create a copy of your default layout _LayoutWithoutJQuery.cshtml that dosn't the have jQuery files then in your Views when you don't want to use the default layout you can use

@{
    Layout = "~/Views/Shared/_LayoutWithoutJQuery.cshtml";
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.