title: Trigger jquery function from c# codebehind
body: <p>I'm fairly new to asp.net/c# and very new to jQuery so please forgive me if this is a newb question.  </p>
  
  <p>I have a jQuery fancybox installed which is defined by:</p>
  
  <pre><code> function pageLoad(sender, args) {  
   $("#ctl00_wpm_ShowProduct_ctl04_TestAddToCart").fancybox({  
      'width' : 600,   
      'height' : 620,  
      'type' : 'iframe'   });      
  }
  </code></pre>
  
  <p>When I click the <code>asp:HyperLink</code> that renders as <code>ctl00_wpn_ShowProduct_ctl04_TestAddToCart</code> everything works (I realize if I move things on the page this could break but I need to make it work before I make it work well).</p>
  
  <p>I have another asp:Button on that page that I want to do some processing and then open the target URL (calendar) in a fancybox.  In the original the click on the link brought fancybox into play and opened the calendar URL.  Now if I remove that, how do I get the same results from the button after it does its half-dozen other tasks?  I won't have a link to which I can tie the jQuery activation.</p>
  
  <p>I know that codebehind is server and jQuery is client, but if it can work from a link it should work from a button.</p>