Click here to Skip to main content
15,913,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everybody

I'm new in ASP.NET MVC and I want to explain my issue. I have one view called: "BaseView" and one partial view called: "GetDetails", when the user makes click on one entity for example: SalesDocument with the purpose to see its details (SalesDocumentLines), the application is going to show the detail partial view (GetDetails) through "BaseView", but in this view I want to implement some CRUD buttons (delete, update, insert) and I can't see the model about details entity, its possible to see the model belongs a partial view from view.
Posted

1 solution

You can pass your model to view like this :

@{
Html.RenderPartial("your view", your_model, ViewData);
}
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900