Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Overlap when Passing data to View Component and View

$
0
0

Hi guys,

In ASP.NET MVC CORE Project,

I have View Component in the Layout page and pass string type data to it,

and i have View that i pass data of type integer to it,

the problem when run that error appear:

InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.Int', but this ViewDataDictionary instance requires a model item of type 'System.String'.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>