在.cshtml页面@Model(solutionaname-> Registration_and_Login.ViewModel.RegisterViewModel) [英] In .cshtml page @Model (solutionaname->Registration_and_Login.ViewModel.RegisterViewModel)

查看:262
本文介绍了在.cshtml页面@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 the namespace in your view.

@using Registration_and_Login.ViewModel
@model RegisterViewModel



-KR


这篇关于在.cshtml页面@Model(solutionaname-&gt; Registration_and_Login.ViewModel.RegisterViewModel)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆