title: Doing Eval in OnClientClick
body: <p>I am having a problem using a databinding Eval in a OnClientClick and I can't find a way to make this bind properly. Here is my code</p>
  
  <pre><code>&lt;asp:LinkButton runat="server" ID="ItemMenuBtn" CssClass="ui-button ui-widget ui-corner-all" OnClientClick='OpenItemMenu(&lt;%# Eval("NotificationData") %&gt;);return false;'&gt;
      &lt;i class="fa fa-lg fa-bars" aria-hidden="true"&gt;&lt;/i&gt;
  &lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>I expect the output to be something like:</p>
  
  <pre><code>&lt;a onclick="OpenItemMenu({JSON notification data here});return false;" id="some id" class="ui-button ui-widget ui-corner-all"&gt;
  </code></pre>
  
  <p>But instead I am getting:</p>
  
  <pre><code>&lt;a onclick="OpenItemMenu(&amp;lt;%# Eval(&amp;quot;NotificationData&amp;quot;) %&gt;);return false;" id="ctl00_m_g_28e3d385_2509_4d3a_9c53_1d17b87a802b_gvNoteworthyItems_ctl02_ItemMenuBtn" class="ui-button ui-widget ui-corner-all" href="javascript:__doPostBack('ctl00$m$g_28e3d385_2509_4d3a_9c53_1d17b87a802b$gvNoteworthyItems$ctl02$ItemMenuBtn','')"&gt;
  </code></pre>
  
  <p>So my questions are:</p>
  
  <ol>
  <li>Why doesn't the eval seem to be working at all?</li>
  <li>Why is everything for the on client click encoded like that?</li>
  <li>Why is that postback being placed in the href of the link? As you can see in the on client click I don't want a postback as this button opens a dialog and passes data to it.</li>
  </ol>