title: Pass Eval as javascript function parameter in gridview
body: <p>I have the following:</p>
  
  <pre><code>&lt;EditItemTemplate&gt;
                      &lt;asp:Button ID="wrqst_need_ind_btn" runat="server" Text = "Create WR" 
                          onClientClick="javascript:popUp('popup_createWR.aspx')"
                          CommandArgument='&lt;%# Eval("dvc_nm") + "|" + Eval("data_orgtn_yr") %&gt;'/&gt;
   &lt;/EditItemTemplate&gt;
  </code></pre>
  
  <p>I want to pass in as two additional params the Eval("dvc_nm") and Eval("data_orgtn_yr") to the popup function.</p>
  
  <p>how do I do this?</p>
  
  <p>Thanks so much for the help!</p>
  
  <p>UPDATE:</p>
  
  <p>I tried the suggestion bellow, and I tried by removing the single quotes from insode the &lt;% %> tags. Which gave me this: </p>
  
  <p>onClientClick='&lt;%# "javascript:popUp(popup_createWR.aspx," + Eval("dvc_nm") + "," + Eval("data_orgtn_yr") + ")" %>'</p>
  
  <p>which complied, but when I clicked the button I did not get a pop up, the page just posted back and reloaded and said errors on page, but no popup...</p>