Posted on: 1/16/2014 12:06:01 PM | Views : 631

i have two tables and i want to bring workshop id from the orderlines table onto the repeater using data binding, i have it working for the quantity as this is also coming from the orderlines table,i am not sure if i have the right code for it to work, i have it highlighted in bold below., it says it doesnt exist in the current contxt

<asp:Repeater ID="Repeater1" runat="server" SelectMethod="GetOrders" ItemType="FYP.Models.Order"> <ItemTemplate> <tr> <td><%#: Item.Name %></td> <td><%#: Item.City %></td> <td><%# Item.OrderLines.Sum(ol => ol.Quantity) %></td> <td><%# Item.OrderLines(Workshop_WorkshopID) %></td> <td>

Go to the complete details ...