Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
order model values should have to be display on the dispatch model form is any way to achieve i tired via grid view it showing the error The model item passed into the dictionary is of type dispatch but this dictionary requires a model item of type orders but i want to pass how should i

What I have tried:

i have i tired a lot for this solution is there any way to achieve this
Posted
Comments
Richard Deeming 27-Mar-18 7:36am    
You go to a coffee shop and order a cup of coffee. The barista hands you a live squirrel instead. Would you still pay?

Your view is the same. It's expecting a model of type "orders", but you've handed it a model of type "dispatch" instead.

Either change the model to the type that the view is expecting; or change the view so that it expects the type your action is passing; or create and use a different view that expects the type your action is passing.
ejaz mirza 29-Mar-18 2:08am    
thax for reply i got the above prblm passing one to another model by mapping i achieved it thax for the valuable reply

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