1

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.

2

2 Answers 2

3

Use master page. add jquery reference there

Sign up to request clarification or add additional context in comments.

1 Comment

Even for master page, I have to add a reference to my aspx page.... The problem is repeated again :(
2

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.

1 Comment

Even for master page, I have to add a reference to my aspx page.... The problem is repeated again :(

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.