开发者

How to pass all the local variables in one asp.net controller to view

开发者_运维知识库

In asp.net mvc3, I've got a few local variables in one of the controller, is there any neat way to pass all these variables to view? Something like "locals()" in python?


You will have to explicitly pass them to the view - using a view model.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜