I have some jQuery Code, which I am planning to use in many pages in my asp.net web form application.
Example: Create User using jQuery dialog box code.
In Asp.net we employ a user control to reuse the same piece of code over and over. Any ideas on how can I reuse jQuery code?
Typically you put the code in an external .js file and use
<script src="my/path/to/jsfile.js" type="text/javascript"></script>in every page you are using the javascript in. (or you can place it in your master template).(moved from comment due to the fact that this… is not a comment :P)