title: JQuery Popup from LinkButton
body: <p>I have the below code which is using the JQuery framework and ASP.NET (VB).</p>
  
  <p>Basically the below code snippet is on the asp page, and is hidden from view until you click a hyperlink/button and then the popup appears, below is the hidden popup code, which I know works:</p>
  
  <pre><code>&lt;!--HIDDEN POPUP 1 BEGIN--&gt;
  &lt;div class="ui-popup-screen ui-overlay-a ui-screen-hidden" id="popupDialog1-screen"&gt;    &lt;/div&gt;
  &lt;div class="ui-popup-container pop ui-popup-hidden" id="popupDialog1-popup"&gt;&lt;div data-role="popup" id="popupDialog1" data-overlay-theme="a" data-theme="c" style="max-width:400px;" class="ui-corner-all ui-popup ui-body-c ui-overlay-shadow" aria-disabled="false" data-disabled="false" data-shadow="true" data-corners="true" data-transition="none" data-position-to="origin" data-dismissible="true"&gt;
          &lt;div data-role="header" data-theme="a" class="ui-corner-top ui-header ui-bar-a" role="banner"&gt;
              &lt;h1 class="ui-title" role="heading" aria-level="1"&gt;Export Data&lt;/h1&gt;
          &lt;/div&gt;
          &lt;div data-role="content" data-theme="d" class="ui-corner-bottom ui-content ui-body-d" role="main"&gt;
              &lt;h3 class="ui-title"&gt;Export Data&lt;/h3&gt;
              &lt;asp:HiddenField ID="hidDataName" runat="server" /&gt;
              &lt;p&gt;Choose one of the formats below to export the data to.&lt;/p&gt;
                  &lt;div data-role="controlgroup" data-type="horizontal"&gt;
                      &lt;asp:LinkButton ID="btnExcel" runat="server" data-role="button"&gt;&lt;asp:Image ID="imgExcel" runat="server" ImageUrl="~/images/Excel.ico" Width="50px" Height="50px" /&gt;Excel&lt;/asp:LinkButton&gt;
                      &lt;asp:LinkButton ID="btnPDF" runat="server" data-role="button"&gt;&lt;asp:Image ID="imgPDF" runat="server" ImageUrl="~/images/PDF.ico" Width="50px" Height="50px" /&gt;PDF&lt;/asp:LinkButton&gt;
                      &lt;asp:LinkButton ID="btnWord" runat="server" data-role="button"&gt;&lt;asp:Image ID="imgWord" runat="server" ImageUrl="~/images/Word.ico" Width="50px" Height="50px" /&gt;Word&lt;/asp:LinkButton&gt;
                      &lt;asp:LinkButton ID="btnCSV" runat="server" data-role="button"&gt;&lt;asp:Image ID="imgCSV" runat="server" ImageUrl="~/images/CSV.ico" Width="50px" Height="50px" /&gt;CSV&lt;/asp:LinkButton&gt;
                  &lt;/div&gt;      
          &lt;/div&gt;
  &lt;/div&gt;&lt;/div&gt;
  &lt;!--HIDDEN POPUP 1 END--&gt;
  </code></pre>
  
  <p>Now I have the link below which opens the popup fine with no issues:</p>
  
  <pre><code>&lt;a href="#popupDialog1"  data-rel="popup" data-position-to="window" data-role="button" data-inline="false" data-transition="pop" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" aria-haspopup="true" data-theme="j" aria-owns="#popupDialog1" class="ui-btn ui-shadow ui-btn-corner-all ui-btn-hover-j ui-btn-up-j"&gt;
  &lt;span class="ui-btn-inner"&gt;&lt;span class="ui-btn-text"&gt;Approve All&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>However I want to be able to run some code on the click of the above button, I have tried using a LinkButton however I can't get the popup to show. The reason I want to run some code is I need to know what button on the page requested the popup.</p>
  
  <p>I hope that makes some sense.</p>
  
  <p>Any help appreciated.</p>
  
  <p>Thanks,
  Steve</p>