数据表的会话变量. [英] session variables for Datatable.

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

问题描述



有人可以帮帮我吗.

我有一个带有gridview的用户控件,并由数据表中的记录填充.
在通过datatable填充gridview之后,我将datatable保存在session变量中.一旦我单击了网格视图中的行,我将加载另一个用户控件,然后单击一次后退按钮,它将再次加载先前的用户控件,这就是为什么我将数据表保存到会话变量中从而无需再次从数据库查询的原因.

系统正在运行,但问题是有时我在从会话变量中检索数据表时,会出现堆栈为空"错误.

有人可以启发我出什么问题吗?

预先感谢.

Hi,

Can someone please help me.

I have a usercontrol with gridview and populated by records from a datatable.
After populating the gridview by datatable, I saved the datatable in session variable. Once i clicked the row in gridview i will load another usercontrol and then once i click back button, it will load again the previous usercontrol thats why i save the datatable into session variable so that i don''t need to query again from the database.

The system is runnin but the problem is that sometimes when im retrieving the datatable from session variable, it gives me "Stack Empty" error.

Can someone out there enlighten me what''s the problem?

Thanks in advance.

推荐答案

Leeland

非常感谢您的关注.

我忘了提一下,有4个独立的进程查询并绑定到gridview中.因此,我决定使用线程处理,以便同时运行4个进程.但是我从不知道该线程会导致堆栈空错误.在我的研究中,GridView绑定不应与其他绑定实例同时进行.


这是网站:
http://stackoverflow.com/questions/6852857/databind-within-parallel-invoke-failing-due-to-stack-empty-error

我现在很好,Leeland,再次非常感谢您.

埃尔南(Hernan)
Hi Leeland,

Thank you very much for the concern.

I forgot to mention that there are 4 independent processes querying and binding into gridview. And because of that I decided to use threading so that simultaneously the 4 processes are running. But I never knew that this threading will cause stack empty error. In my research, gridview binding should not be done simultaneously with other instances of binding.


Here is the site :
http://stackoverflow.com/questions/6852857/databind-within-parallel-invoke-failing-due-to-stack-empty-error

I''m ok now Leeland, again thank you very much.

Hernan


这篇关于数据表的会话变量.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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