tags:

views:

210

answers:

1

The following code:

<% foreach (var product  in ViewData.Model) { %>
        <%= Html.RenderPartial("~/Views/Shared/ProductSummary.ascx",product)%>
    <% } %>

Throws an httpCompileException with the following detail:

The best overloaded method match for 'System.IO.TextWriter.Write(char)' has some invalid arguments

I confess myself to be baffled, flummoxed, confused even. Where have I gone astray? I don't get any errors, red squigglies, anything, until run time.

+1  A: 

Found my error, I need to eliminate the equals sign before the call. Silly rabbit.

KevDog