在aspx页面中查看会话值 [英] View session value in aspx page

查看:113
本文介绍了在aspx页面中查看会话值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的会话对象中存储了一个列表:



Hi , i store a list in my session object:

List<Component> componentList = (List<Component>)Session["ComponentList"];





我想访问aspx页面中的整个列表来可视化html表中的每个组件。我能怎么做 ?谢谢!



and I want to access to entire list in aspx page to visualize each component in html table. How can i do ? Thanks!

推荐答案

您可以使用componentList中的ecah行在aspx中编写内联代码,您可以逐行获取整个列表的行
You can write inline code in aspx by using for ecah row in componentList and you can get row by row order of entire list


这篇关于在aspx页面中查看会话值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆