I am trying to replace all the spaces in my title to use as an ID, but I keep getting this error: error CS0103: The name 'Replace' does not exist in the current context
The code I am using is this: id="<%# Eval(Replace("Title"," ", "")) %>
id="<%# Eval("Title") %> works like a dream, and I have tried various ways to get the spaces removed, like Trim and Replace, but each gives me the above error.
can you help me format the right eval please? I am using SharePoint 2010 Enterprise edition.