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.
Do I need to remove code-behind *.cs files to use JQuery with ASP.NET?
If yes, why should I do that?
NO.
Code behind is server-side, jQuery is client side. They are two entirely different worlds. There should be no reason why you would need to remove the .cs files.
Add a comment
Code behind doesn't have anything to do with jQuery, and can't affect it.
jQuery is a JavaScript library, you have to put your code that uses it in your .aspx files.
You don't need to remove code-behind files.
JQuery is just a javascript library.
Do you need to remove javascript files? I don't think so.
No, you just have to add jQuery to the .aspx file (or it's master page).
<script type="text/javascript" src="path/to/jquery.js"></script>
And you can use it! :)
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.