在ASP .Net AJAX面板中启动一个线程 [英] launching a thread inside an ASP .Net AJAX panel

查看:56
本文介绍了在ASP .Net AJAX面板中启动一个线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我一直在尝试通过调用线程中的存储过程来执行一个执行数据库操作的新therad,但操作不成功。我在Ajax Update面板中完成一个事件后启动该线程,并且似乎阻止
。事件触发正常,并且线程似乎阻塞,因为在调用therad并且更新UI时存在延迟。 UI数据不依赖于此线程。我只是想让线程在后台注册一些用户信息,
并注册到数据库中,但数据库没有得到更新。当我在没有线程的情况下调用相同的函数时,存储的proc被称为ok,并且DB会更新。


有人可以帮忙吗?


 


谢谢!


 

解决方案


 


欢迎来到MSDN论坛。


 


根据你的描述,我想移动你的主题偏离主题,因为它是与ASP.NET相关的问题。您可以在
中发布帖子 ASP.NET论坛 。该论坛中有更多专家,以便您可以获得更多有用的帮助。


 


感谢您的发布和理解。


祝你有愉快的一天。


Hi all, I have been trying to execute a new therad that does a database operation by calling a stored procedure within a thread, but the operation does not succeed. I launch the thread after an event has completed inside an Ajax Update panel, and it seems to be blocking. The event fires fine, and the thread seems to block because there is a delay while the therad is being called and the UI is updated. The UI data does not depend on this thread. I just wanted the thread to register some user info on the background, and register into the DB, but the DB is not getting updated. When I call the same function without the thread the stored proc is called ok, and the DB gets updated.

Can someone help?

 

Thanks!

 

解决方案

Hi,

 

Welcome to the MSDN forum.

 

According to your description, I'd like to move your thread to off-topic because it is a problem related to ASP.NET. You may post thread in ASP.NET Forum. There are more experts in that forum so that you may get more useful help there.

 

Thank you for your posting and understanding.

Have a nice day.


这篇关于在ASP .Net AJAX面板中启动一个线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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