how to to check if jQuery is loaded from C# code?
===


0
down vote
favorite
I 'm developing a WEB_PART and I'd like to know if there some way to find out if exists any JQUERY LIB inside the master page project where the web part is going to be inserted.

I'd like to do something like this: 

      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");

      }