【发布时间】:2012-07-29 08:03:56
【问题描述】:
我正在开发一个 WEB_PART,我想知道是否有某种方法可以找出要插入 Web 部件的母版页项目中是否存在任何 JQUERY LIB。
我想做这样的事情:
if (jQuery) {
// jQuery is loaded
Page.ClientScript.RegisterClientScriptInclude(typeof(WebpartSlideShow), "jQuery", "/_layouts/Jquery-Cycle/jquery-1.5.1.min.js");
Page.ClientScript.RegisterClientScriptInclude(typeof(WebpartSlideShow), "jQueryCycle", "/_layouts/Jquery-Cycle/jquery.cycle.all.min.js");
// break;
} else {
// jQuery is not loaded
Page.ClientScript.RegisterClientScriptInclude(typeof(WebpartSlideShow), "jQueryCycle", "/_layouts/Jquery-Cycle/jquery.cycle.all.min.js");
}
【问题讨论】:
标签: c# jquery jquery-ui sharepoint web-parts