摘要:
主要总结Controller如何获取URL参数,以及Controller与View之间的数据传递。1.Controller 数据传递给View (1)使用强类型View 先定义自定义的实体:代码一个假的BLL ProductController 中IndexAction的实现:View展示数据: (2)弱类型View 有 ViewData 与 ViewData 区别就不介绍了。当然你用弱类型V... 阅读全文
posted @ 2010-10-28 22:14
clound
阅读(1173)
评论(4)
推荐(1)

浙公网安备 33010602011771号