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?
For such basic question of passing/accessing the model members in the view, you should first try to search some links/topics online, anyways here are few to get you started-
https://msdn.microsoft.com/en-in/library/dd394711%28v=vs.100%29.aspx
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.