MVC ASP.Net how do I add a second model to a view? i.e. Add a dropdown list to a page with a html grid?

Posted by John S on Stack Overflow See other posts from Stack Overflow or by John S
Published on 2012-07-02T20:21:45Z Indexed on 2012/07/02 21:16 UTC
Read the original article Hit count: 263

I have been able to find lots of examples of adding a Dropdown list to a view but I need to add a dropdown list to a view that also has a Webgrid on it. This entails two different models and from what I see I can only have one per view.

The DDL will be filled from one model and the grid from the other.

I'm just trying to filter the displayed data in the grid with the data selected in the ddl.

Any examples or articles would be greatly appreciated.

TIA

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about entity-framework