简体   繁体   中英

How access model data directly from view?

I am just a beginner in ASP.NET MVC. I know we can pass data of model to the View through the controller by using TempData/ViewData/Viewbag or by directly passing it as ActionResult.

I want to know, is there any way that we can directly access the members of Model class to a View?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM