ASP.NET-MVC – Linq Groupby in strong type MVC view

How to get IGrouping results to map to views?

I have this question:

var groupedManuals = manuals.GroupBy(c => c.Series);
return View (groupedManuals);

What is the correct mapping of the ViewPage declaration?

Inherits="System.Web.Mvc.ViewPage>"

< /div>

I am still in the early stages of learning Linq, so I may be wrong, but I think ViewPage needs to be like

Inherits ="System.Web.Mvc.ViewPage>>

How to get IGrouping results to map to the view?

I have this question:

var groupedManuals = manuals.GroupBy(c => c.Series);
return View(groupedManuals);

pre>

What is the correct mapping declared by ViewPage?

Inherits="System.Web.Mvc.ViewPage>"

p>

I'm still in the early stages of learning Linq, so I may be wrong, but I think ViewPage needs to be like

 Inherits="System.Web.Mvc.ViewPage>>

Leave a Comment

Your email address will not be published.