title: asp.net (4) listview gives me troubles with generating id's
body: <p>i'm in a asp.net listview, in the itemtemplate.</p>
  
  <pre><code>&lt;asp:ListView runat="server" ClientIDMode="Predictable" ClientIDRowSuffix="Texttranslations_key"ID="lvwTextitems"&gt;
  </code></pre>
  
  <p>This is my code in the itemtemplate:</p>
  
  <pre><code>&lt;span runat="server" onclick="openDiv('&lt;%= EditItemDiv.ClientID%&gt;')" style="width: 450px;"&gt;&lt;%# Eval("Translation")%&gt;&lt;/span&gt;
  &lt;asp:panel  runat="server" id="EditItemDiv" style="display:none"&gt;
  &lt;asp:TextBox runat="server" ID = "EditItemArea" TextMode ="MultiLine" Rows="12" Columns="50" Text="&lt;%# Eval("Translation")%&gt;"&gt;
  &lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>Now i have two problems.
  First the span: i want the clientID of the asp:panel in the function openDiv(), so i can create some show hide functionality.
  However, i get this as result:</p>
  
  <pre><code>&lt;span onclick="openDiv(&amp;#39;&amp;lt;%= EditItemDiv.ClientID%&gt;&amp;#39;)" style="width: 450px;"&gt;
  </code></pre>
  
  <p>my code isn't seen as code, but as plain text, and i don't know why?</p>
  
  <p>Second, this line gets me a runtime error (The server tag is not well formed):</p>
  
  <pre><code>&lt;asp:TextBox runat="server" ID = "EditItemArea" TextMode ="MultiLine" Rows="12" Columns="50" Text="&lt;%# Eval("Translation")%&gt;"&gt;
  </code></pre>
  
  <p>Can somebody help me out?</p>
  
  <p>ps
  at first i used this code for the generation of the id's: "myid&lt;%# Eval("Id")%>" but that didn't workout either...</p>
  
  <p>ps
  i'm always getting in to trouble when using the Eval and the &lt;%# %>, so it's probably some stupid thing (i hope)</p>