Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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
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
_LayoutWithoutJQuery.cshtml
@{ Layout = "~/Views/Shared/_LayoutWithoutJQuery.cshtml"; }
Add a comment
Required, but never shown
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.
Explore related questions
See similar questions with these tags.