0
在ASP.NET MVC核心项目,重叠传递数据时,观看部件和View
我在布局页查看组件和字符串类型的数据传递给它,
和我认为我运行错误时通过类型整数给它的数据,
问题出现:
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'.
'返回查看(yourInteger.ToString()) ' – haim770
您能否包含我们审查的源代码? – mjwills