数据表问题 [英] Issue with datatable

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

问题描述

大家好,



如何在前端点击按钮时停止长时间运行的查询,以及在点击停止按钮时如何停止向数据表填充数据。 />


所以我的要求是,如果我点击停止按钮,任何数据应该填入gridview中的数据。



i我正在使用oracle作为我的数据库。



请用一个例子来告诉我如何做到这一点。



提前感谢,

Hello all,

How to stop a long running query on button click from front end and how to stop filling data to datatable when stop button clicked.

so my requirement is like if i clicked on stop button whatever data fetched into datatable that should populate in gridview.

i am using oracle as my database.

please suggest me a way how to do it with example.

thanks in advance,

推荐答案





1)逐一阅读你的记录使用SQLDatareader并将其添加到数据表中

2)如果用户单击停止按钮,则中断循环并显示数据表中的数据。

< br $>
最好的问候

Muthuraja
Hi,

1) Read your records one by one using the SQLDatareader and add it into the data table
2) If the user clicks stop button, break the loop and show the data which is in the data table.

Best Regards
Muthuraja


我认为不可能。



如果你愿意的话,你可以从外面杀死线程,但这样做非常危险并且可能导致问题lems。



干杯,

Edo
I don''t think its possible.

You could kill the thread from outside if you want but that is terribly risky and can cause problems.

Cheers,
Edo


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

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