I am using jQuery in web forms, and I am looking for any possible way to add jQuery reference to web.config so that I don't have to add it in every page. Don't say Master Page please. Because if we will use Master Page , the reference giving problem to aspx is repeated.
-
Possible duplicate of:- stackoverflow.com/questions/5137856/…Death-is-the-real-truth– Death-is-the-real-truth2017-09-12 04:27:22 +00:00Commented Sep 12, 2017 at 4:27
-
Possible duplicate of reference jquery assembly in web.configJino Shaji– Jino Shaji2017-09-12 04:28:57 +00:00Commented Sep 12, 2017 at 4:28
2 Answers
Use master page. add jquery reference there
1 Comment
If you are using web page project you can use Master Page. Master Page allows you to create a common layout for you web application pages. So that it allows you to create a common design pattern (like having common header menus and footer and having the common css and scripts). So that you can define all the scripts and style sheets which is common to all your web pages and include it in this master page.
You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page.(Content copied from MSDN:)
For more details about Master Page Click here. It gives a detailed explanation about master page.