Why doesn't this (translated) VB.NET code work?
Posted
by ropstah
on Stack Overflow
See other posts from Stack Overflow
or by ropstah
Published on 2010-03-27T23:34:13Z
Indexed on
2010/03/27
23:43 UTC
Read the original article
Hit count: 350
I had a piece of C# code converted, but the translated code isn't valid... Can somebody help out?
C#
<table>
<% Html.Repeater<Hobby>("Hobbies", "row", "row-alt", (hobby, css) => { %>
<tr class="<%= css %>">
<td><%= hobby.Title%></td>
</tr>
<% }); %>
</table>
VB
<% Html.Repeater(of Jrc3.BLL.Product)(Model.ProductCollectionByPrcAutoKey, "row", "row-alt", Function(product, css) Do %>
<tr class="<%= css %>">
<td><%= hobby.Title%></td>
</tr>
<% End Function)%>
© Stack Overflow or respective owner