title: Including eval / bind values in OnClientClick code
body: <p>I have a need to open a popup detail window from a gridview (VS 2005 / 2008).  What I am trying to do is in the markup for my TemplateColumn have an asp:Button control, sort of like this:</p>
  
  <pre><code>&lt;asp:Button ID="btnShowDetails" runat="server" CausesValidation="false"
     CommandName="Details" Text="Order Details" 
     onClientClick="window.open('PubsOrderDetails.aspx?OrderId=&lt;%# Eval("order_id") %&gt;',
     '','scrollbars=yes,resizable=yes, width=350, height=550');"   
  </code></pre>
  
  <p>Of course, what isn't working is the appending of the &lt;%# Eval...%> section to set the query string variable.</p>
  
  <p>Any suggestions?  Or is there a far better way of achieving the same result?</p>