- <table>
- <% foreach (var number in Numbers)
- { %>
- <tr>
- <td><%= number %> <asp:Label ID="alternatenumberLabel" runat="server" CssClass="label-xxxl" Text="<%= number %>" ></asp:Label></td>
- <td><asp:Button ID="Button" runat="server" CommandName="Submit" Text="> Wijzigen"
- UseSubmitBehavior="false" CssClass="button" OnClick="EditButton_Click" ValidationGroup="EditUserGroup" /></td>
- </tr>
- <% } %>
- </table>
when I run the code the <td><%= number %> part shows the result of the foreach item. However the asp:label text is shown as plain text instead of getting the value, and I need to put it on a label, so can somebody tell me what i'm doing wrong so I can just show only a label that contains the foreach iten and the button. so withoud the first part <td><%= number %> .