I'm creating a SharePoint Web Part that displays list items.
To display these items I am using an asp:ListView and <%#Eval() %>.
I needed to change the output of <%#Eval() %> so I added a new static class to the project, created an extension method and imported the namespace in the user control.
So the <%#Eval() %> looks like this: <%#Eval("xxx").ToString().MyMethod() %>
The problem is that when I debug this Web Part I get an error saying that 'string' does not contain a definition for MyMethod.
<%# ClassName.MyMethod() %>this doesn't work? or<%# NameSpace.ClassName.MyMethod() %>