When i try to 

```
OnClientClick="jpcPrint(<%= this.Controller.JPId %>);"

```

for a button, <%= 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:

```
onclick="jpcPrint(49);"

```

for example instead of 

```
onclick="jpcPrint(<%= this.Controller.JPId %>);"

```

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

```
<cc1:AutoCompleteExtender ID="Autocompleteextender1" MinimumPrefixLength="4" CompletionInterval="1000"
                CompletionSetCount="10" ServiceMethod="GetCompletionList" ContextKey="<%# this.Controller.JPId %>"
                TargetControlID="txtLKey" runat="server" CompletionListCssClass="jpcKeyList" >

```

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