How do I do this OnClientClick="jpcPrint(<%= this.Controller.JPId %>);"... so that it works
<p>When i try to </p>

<pre><code>OnClientClick="jpcPrint(&lt;%= this.Controller.JPId %&gt;);"
</code></pre>

<p>for a button, &lt;%= this.Controller.JPId %> is literally put into the html rather than being evaluated. How do i write some version of the above such that the html would read:</p>

<pre><code>onclick="jpcPrint(49);"
</code></pre>

<p>for example instead of </p>

<pre><code>onclick="jpcPrint(&lt;%= this.Controller.JPId %&gt;);"
</code></pre>

<p>&lt;%= this.Controller.JPId %> evaluates perfectly well when placed elsewhere on the page including in a gridview above this button. For example this works fine:</p>

<pre><code>&lt;cc1:AutoCompleteExtender ID="Autocompleteextender1" MinimumPrefixLength="4" CompletionInterval="1000"
                CompletionSetCount="10" ServiceMethod="GetCompletionList" ContextKey="&lt;%# this.Controller.JPId %&gt;"
                TargetControlID="txtLKey" runat="server" CompletionListCssClass="jpcKeyList" &gt;
</code></pre>

<p>So this.Controller.JPId is not the issue. Seems to be something about the way such statement are evaluated within button attributes.</p>
