I have a gridview. I want to bind something like:
<asp:TemplateField //stuff>
<ItemTemplate>
<asp:Label ID="lblEx" runat="server" text='<%# SomeJavascriptFunction( Eval("BOUND_FIELD_FROM_DB") ) %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
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?
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.
EDIT:
I do have a code-behind version implemented and working - I'd just like to take the processing load off the server.