Click here to Skip to main content
11,925,292 members (60,694 online)
Rate this:
Please Sign up or sign in to vote.
See more: Linux MVC
I want to retrive value from multiple table in mvc .
Posted 28-Nov-12 1:21am
Richard MacCutchan 28-Nov-12 6:33am
Then you need to either do it, or explain what your problem is. We cannot see your coding or read your mind.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There are two ways of doing it.

1. Do it through controller.
2. Create view model that contains object of multiple tables and use that view model wherever you need it.

hope it helps...

Sagar Solanki
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


1. You can create a View Model as mentioned in this reference Multiple Models in a View in ASP.NET MVC 4 / MVC 5[^]

2. You can use PartialView or PartialAction in your view to load the different model from the controller

you can also refer this link to view small examples on each[^]

Hope it helps

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 13 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100