简体   繁体   中英

The theory of Asp.Net MVC data transmission

I konw MVC has a lot of method to pass data, Such as return View() would send strongly type model from controller to view. also can use viewbag,viewdata,tempdata and so on...

I just know how to use,but what I want to figure out is how it pass data. Can any one help me on this?

传递数据的最佳方法是通过Model类,然后将其return View(model);

I think that to understand what really happen behind the curtains, is to look at the sources of Asp.Net MVC. You can download them here

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