在.cshtml页面@Model(solutionaname-> Registration_and_Login.ViewModel.RegisterViewModel) [英] In .cshtml page @Model (solutionaname->Registration_and_Login.ViewModel.RegisterViewModel)
问题描述
对于MVC来说是新手....
@model thel solutionname没有进入.cshtml页面..我必须为此做些什么...
如果我按照以下方式输入它没有错误地运行但是在浏览器中显示
Registration_and_Login.ViewModel.RegisterViewModelthis只...我怎么能解决这个问题
我直接打字
----- ----------
@Model Registration_and_Login.ViewModel.RegisterViewModel
<请告诉我们如何克服这个问题...
感谢分享
< blockquote>在视图中包含命名空间
。
@ using Registration_and_Login.ViewModel
@model RegisterViewModel
-KR
am new for MVC....
after @model thel solutionname is not coming to that .cshtml page...what i have to do for that..
if am typing in following way it running without error but in the browser it's shows
"Registration_and_Login.ViewModel.RegisterViewModel" this only...how i can solve this problem
directly i typed
---------------
@Model Registration_and_Login.ViewModel.RegisterViewModel
please tell how to overcome that...
thanks for sharing
Include thenamespace
in your view.
@using Registration_and_Login.ViewModel @model RegisterViewModel
-KR
这篇关于在.cshtml页面@Model(solutionaname-> Registration_and_Login.ViewModel.RegisterViewModel)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!