I have a custom aspx page in my SharePoint 2010 WCM site. Data is pulled from a list into a DataTable and alot of the fields are then bound to the page using the Eval method. Rather than using strings directly in the aspx page I have defined the strings in a class which encapsulates all my methods regarding a particular list. e.g.
<asp:Literal ID="progimage" runat="server" Text='<%# Eval(Programme.Fields.ProgImage) %>'/>
This works in testing and worked in production until the client upgraded to SP1. Now we are getting the message:
Error - A call to Bind was not well formatted. Please refer to documentation for the correct parameters to Bind.
Using strings directly works fine e.g. Eval("Title")
Can anyone explain why it may have stopped working all of a sudden? I've upgraded the test site to SP1 but can't recreate the problem. It does run with considerably lower security. Programme is a public static class. The field are defined like this:
public static class Programme
{
public static class Fields
{
public static string ID = "ID";
public static string Title = "Title";
//etc
}
They are still successfully accessed from the page's code behind file, only the aspx is a problem.
Any help appreciated.