Rahul Patel

Rahul Patel

  • 1.6k
  • 105
  • 10.9k

Model Issue while Rendering Partial View

Jul 12 2018 2:59 PM
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.

Answers (1)