Gridview template Javascript databinding
<p>I have a gridview. I want to bind something like:</p>

<pre><code>&lt;asp:TemplateField //stuff&gt;
  &lt;ItemTemplate&gt;
    &lt;asp:Label ID="lblEx" runat="server" text='&lt;%# SomeJavascriptFunction( Eval("BOUND_FIELD_FROM_DB") ) %&gt;' &gt;&lt;/asp:Label&gt;
  &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
</code></pre>

<p>This exact syntax doesn't appear to be working - it's telling me the function isn't declared (it is). I'm thinking it's looking for SomeJavascriptFunction() in the code-behind. Is there some way to make this work?</p>

<p>I can't seem to find the correct verbiage in my searches - results all seem to be regarding binding a gridview through javascript, which is not exactly correct.</p>

<p><strong>EDIT:</strong></p>

<p>I do have a code-behind version implemented and working - I'd just like to take the processing load off the server.</p>
