Вопрос

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?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top