title: Passing multiple Eval() to a JavaScript function from ASPX
body: <p>I am trying to pass multiple <code>Eval()</code> arguments to a JavaScript function from an <code>.aspx</code> file, but I keep getting compiler errors.  I am new to JavaScript and have never really used <code>Eval()</code> before.  Where am I going wrong?</p>
  
  <p><strong>NB</strong>:  The line shown below is actually all on one line, but is wrapped here for clarity:</p>
  
  <pre><code>&lt;asp:LinkButton runat="server" Text='&lt;%#Eval("Title")%&gt;'
      OnClick='javascript:ShowEventDetails'
      CommandArgument='&lt;%#
          Eval("EventID").ToString()          &amp; Eval("Title").ToString() &amp;
          Eval("Location").ToString()         &amp; Eval("StartTime").ToString() &amp;
          Eval("Description").ToString()      &amp; Eval("Link").ToString() &amp;
          Eval("ContactFirstName").ToString() &amp; Eval("ContactLastName").ToString() &amp;
          Eval("ContactEmail").ToString()     &amp; Eval("InsertionTime").ToString() &amp;
          Eval("EventAdmin").ToString()%&gt;); ' /&gt;
  </code></pre>
  
  <p>Are there better ways of doing this? If so, what are they?</p>