Access a databound variable in regular inline expression
<p>I'm trying to access a databound variable within a regular C# inline expression.</p>

<p>I was hoping there was some way I could access it using the <code>Eval()</code> command, but you cannot use it inside a regular inline code block. (What I mean by that, is the <code>&lt;% %&gt;</code> tag).</p>

<p><strong>NOTE</strong>: The below inline code is not complete, I set the boolean (IsCommented) beforehand.</p>

<pre><code>&lt;%
    if (IsCommented)
        Response.Write("&lt;a href='#' onclick='Comment(" + Eval("commentid") + "', $(this)); return false;' class='btn btn-info'&gt;Comment&lt;/a&gt;");
    else
        Response.Write("&lt;a href='#' onclick='Comment(" + Eval("commentid") + "', $(this)); return false;' class='btn btn-inverse'&gt;Commented!&lt;/a&gt;");
%&gt;
</code></pre>

<p>Is this at all possible?</p>

<p>(Note that I have this all contained within a <code>ListView</code>)</p>
