Hi All,
I'm working on a web app in ASP.net with VB.Net on Visual Studio 2010 (.Net Framework 4).

I'm trying to use a datarepeater class to display results from a query on the web page so I coded away exactly as I used to in Visual Studio 2008. However, I am getting syntax error messages where I am trying to display the data values:

   <asp:Repeater ID="repeater1" runat="server">
     <td><%# Eval("Item1")%></td>

I'm getting the syntax error at the following: <%# Eval("Item1")%> The Error I get is: Expression expected

Can you try

<%# DataBinder.Eval(Container.DataItem, "Id") %>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.