Using Html.ActionLink() with ASP.NET MVC & Spark - Syntax? -


Everything, normal / ASPX view works well with Spark and MVC within NerdDinner, and I have not touched any controller code so I am pretty sure that it is not so.

& lt; ViewData Model = "System Colections. Generic.InMemable [[NerdDinner.Models.Dinner]]" /> & Lt; Set Title = "'Upcoming Day' '' & gt; & lt; Content: Main & gt; & lt; li Each =" P in Model "& gt;! {Html.ActionLink (P. Title, 'Description', 'Dinner')}
Content: Main>

In view of the above code, ActionLink is considered as good as that which is good When I try to provide an ID to my action method, then I start killing a wall, as far as I can tell from Spark sample docs, do something like this Should be enabled in:

 ! {Html.ActionLink (p.Title, 'Details', 'Dinners', new {id = p.DinnerID}}}  

However, it throws an exception: "unexpected token '{'"

I hope this is something silly. I'm missing ... any suggestions?

I believe there should be another criteria for the HTMLActionLink for HTML attributes on the action link.

 ! {Html.ActionLink (p.Title, 'Description', 'Dinner', New {i D = p.DinnerID}, null)}  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -