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 6918453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:51:39+00:00 2026-05-27T09:51:39+00:00

I am creating a custom WebControl in my class library that has an embedded

  • 0

I am creating a custom WebControl in my class library that has an embedded resource JavaScript file that it utilizes. That JavaScript uses jQuery.

My question is, if the ScriptManager on the page that the control is to be used on, is guaranteed to have a ScriptReference to jQuery, do I still need to have jQuery as an embedded resource in the class library for the control’s JavaScript to be able to make use jQuery?

If the answer is yes, what happens when I create other controls that also have embedded JavaScript that use jQuery and a few different of these controls are used on the same page? Is the embedded jQuery script added to the page as a webResource multiple times?

  • 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-27T09:51:40+00:00Added an answer on May 27, 2026 at 9:51 am

    Is jQuery the embedded resource or some JS that uses jQuery?

    Either way, you only need one reference to jQuery in your ScriptReferences. If jQuery itself is embedded in the control (terrible design) then you should remove it if possible.

    Loading jQuery once at the top of the page has many advantages, however the first and foremost is the fact that other areas of the page might require it so relying on it to be loaded within a control is a terrible idea.

    In summary, do whatever you can to not have jQuery (or any script resources) loaded multiple times on the same page

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

Sidebar

Related Questions

In WPF, we are creating custom controls that inherit from button with completely drawn-from-scratch
I'm looking for a tutorial that explains creating custom usercontrols in WPF. I want
I have a question about creating and managing events inside an ascx custom web
I am reading up on creating custom jQuery plugins and am a little confused
I am creating custom Swing components and want to provide a UI that looks
I am creating custom images that I later convert to an image pyramid for
I just started with creating custom objects in javascript. I want to set this.someObjVar
I use PopupWindow class for creating custom popup window. But when I add layout_margin
I'm new to creating custom object in JavaScript, so it could easily be something
Ran into problem with creating custom select dropdown plugin in jQuery. I'm at the

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.