0

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:

<table>
   <asp:Repeater ID="repeater1" runat="server">
   <HeaderTemplate>
   <tr>
   </HeaderTemplate>
   <ItemTemplate>
     <td><%# Eval("Item1")%></td>
   </ItemTemplate>
   <FooterTemplate>
   </tr>
   </FooterTemplate>
   </asp:Repeater>
</table>

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

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by khadakbist
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.