I have a GridView with a template column. In it I have a hyperlink control and I set it's visibility and Navigate URL dinamically using Eval. It all works fine but now I have to add a tooltip to the control, and I need to trim the space and comma at the end of the text.
I'm doing this:
ToolTip='<%# Eval("CombinedAccessions").ToString().TrimEnd(',', ' ') %>'
This works if coded on code behind, but fails when coded on the aspx page. But If I use just TrimEnd(), that function call works fine. What am I doing wrong?