Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3981522
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:25:12+00:00 2026-05-20T05:25:12+00:00

I am using JQuery within a custom AJAX user control (part of a home

  • 0

I am using JQuery within a custom AJAX user control (part of a home grown toolkit) and I need to ensure that JQuery is present on the hosting page. There can be multiple instances of the control on a page and some controls may need to use different versions of JQuery.

At the moment I am using the following code to load in JQuery when the control initializes…

Page.ClientScript.RegisterClientScriptInclude(Page.GetType(), "jquery-1.4.4.min.js", this.ResolveUrl("TextControlPlugin/lib/jquery-1.4.4.min.js"));

This works because the scriptmanager handles not putting multiple copies of the same script into he page.

Problems…

  • I cannot use JQuery statically in the
    calling page (I may not have a
    control on the page but need to use
    JQuery)
  • The scriptmanager appears to
    handle only duplicate URL’s and I
    will need to deploy it from
    potentially 2 different URL’s (the
    calling page’s copy and the controls
    copy)

So, is there a way to isolate a version of JQuery to the context of my control that doesnt interfear with any use of JQuery from the calling page? The developer writing the page may not have access to the internals of the control.

I have looked at JQuery.noConflict() but cannot seem to get it to work correctly – I believe I’m having problems with the order in which the scripts are injected into the page – I keep getting JQuery is undefined errors.

Any help would be much appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:25:12+00:00Added an answer on May 20, 2026 at 5:25 am

    Would there be a problem just taking a dependency on jQuery and putting it in your base MasterPage? This way, it would always be ensured to be in the page.

    I’d recommend going for only one version of jQuery too as it will get confusing very quickly as to which variable refers to which version of jQuery. Passing true to $.noConflict(true) will assign what jQuery references to _jQuery and _$.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that is using jQuery tabs. Within one of my tabs
I have a custom developed WordPress plugin that is using jQuery 1.4 and for
I am trying to perform an ajax.get using jquery within document.ready . But the
I am using jQuery within a server side control to post back to a
Using jQuery Mobile I would like to disable the ajax call on links within
Using Jquery preferably, how do I detect if an element is within the viewable
I am using the jQuery nyroModal plugin within ASP.Net. I love nyroModal, and overall
I am using JQuery to execute an operation within a web service. After writing
-- Running within ASP.NET MVC alongside jQuery -- I'm using jQuery to render a
I am using jQuery to parse an RSS feed. Within each <item> is a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.