title: Embedded code in repeater
body: <p>I am using a databound repeater component with some click-sensitive panel inside.</p>
  
  <pre><code>&lt;ItemTemplate&gt;
          &lt;asp:Panel ID="PanelContent" runat="server"&gt;
              &lt;asp:Panel ID="PanelMenuTitle" runat="server" 
                  ondblclick="EditMenu(&lt;%# Eval("ID") %&gt;)"&gt;
  </code></pre>
  
  <p>As you can see I want to pass the ID of the current data item to a javascript function called EditMenu().</p>
  
  <p>However, this code breaks due to "The server tag is not well formed.". I also tried everything I can think of: Using <code>&lt;%=</code> instead of <code>&lt;%#</code>, <code>Bind()</code> instead of <code>Eval()</code>, ' instead of " without success.</p>