title: Populate bootstrap modal popup with data before displaying
body: <p>I'm using ASP.NET web forms with Twitter Bootstrap and HTML5.</p>
  
  <p>I have a LinkButton that shows a modal pop-up with code below. The modal pop-up is just a div with a Repeater.</p>
  
  <pre><code>&lt;a href="#myModal" class="btn btn-mini btn-block btn-primary" data-toggle="modal"&gt;View&lt;/a&gt;
  </code></pre>
  
  <p>The code above correctly opens the popup, but I want to do this and fill the Repeater with data before the popup is displayed:</p>
  
  <pre><code>&lt;asp:LinkButton runat="server" ID="lnkView" CssClass="btn btn-mini btn-block btn-primary" 
                                              OnCommand="lnkView_Command"
                                              CommandArgument='&lt;%# Eval("ID") %&gt;'&gt;View&lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p><code>lnkView_Command</code> would get data from db in C# code-behind.</p>
  
  <p>I'm aware that the <code>OnCommand</code> also generates <code>&lt;a href="" &gt;</code>, but I'm not sure how to resolve using <code>href</code> to display pop-up, and also call code-behind method.</p>
  
  <p>Any help would be greatly appreciated.</p>