Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I am a beginner of mvc, I want to Everything's in one view, suppose use editor model, show record list.Its Possible ? Please help me .
Posted

1 solution

I think this is what you mean.

You would like a view that combines a list of records and editor, sometimes called a summary/detail view or master/detail view.

The trick is to use Partial views.
Make a partial master list view.
Make a partial detail edit view.
Make a combination view that contains both partial views.
Use AJAX to call the edit controller and replace the edit view when a master item is clicked.

Make a master list controller method.
Make a details edit controller method.
 
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