Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have created a View in that I have to create records and display in grid in MVC4.0.
Every thing works fine when we use separate View for Data Insertion and Display Records.
But we use these two functionality together then it does not work.For insertion we use @model MvcApplication1.Models.ClassXyz at the top of the View

and for Display we use @model IEnumerable<mvcapplication1.models.classxyz>.

Is there any way to use both functionality in a single View with Strong Type Implementation.



Thanks & Regards
Mohd Wasif
Posted
Comments
vsrikanth87 13-Mar-14 12:16pm    
try to use partial views, hope it helps

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