3
Reply

I have tow seperate models and i want to show them in one vi

Mark Tabor

Mark Tabor

Dec 24 2017 11:06 AM
121
I have two seperate class like cricket and football , I also have a palyer table and each player is playing both football and cricket now on player grid i want to show a linkbutton when i click it it will show two grid one from circket class to show the result and one from football class to show the associated player result how to achieve that i am new to mvc .
 
what i tried ----
I created one simple view with name measurement and i have created two partial strong type details views for both classes and in my main view and  i am rendering these two partial views but the issue is that my main view is just a view so it is not passing the player id while i need to show the correct record of selected player against its id how to achieve that any example 

Answers (3)