Skip to content

Model Issue while Rendering Partial View

Rahul Patel

Asked Jul 12, 2018, 10:59 AM EDT1 answer
Share
LinkedInX
Hi friends,
 
I am trying to create one small application in mvc, In that application i have creating 1 shared layout, 2-3 partial views and Products views, Now my issue is when i combine all this pages then its give me below error :
 
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[xxxx.Models.Products]', but this dictionary requires a model item of type 'xxx.Models.ChangePassword'.
 
here Change password is my partial view form.
 
@Html.Partial("~/Views/ChangePassword/Index.cshtml")
 
this code is using for rendering the partial view.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    You probably passing wrong model object as said in error. Can you show code where you declare model for this?
    0