使用会话获取控件 [英] Fetching the controls using session

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

问题描述

你好,
我已经存储了不同的控件以成功进行会话(ASP.net,C#).
现在,由于控件列表具有文本框,复选框,单选按钮,下拉列表等,因此我该如何获取这些控件.如何从会话中获取控件数组.
问候,
Prasad

Hello,
I have stored different controls to session successfully(ASP.net, C#).
Now, how do i fetch those controls because the control list has textboxes, checkboxes, radio button, dropdown list etc. How can the control array be fetched from session.
Regards,
Prasad

推荐答案

迭代会话变量,同时执行以下操作:

Iterate through the session variables while performing the following:

TextBox txtMyTextBox = (TextBox)Session["value"];


这篇关于使用会话获取控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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