在网页中运行地面线程 [英] Running back ground thread in a webpage

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

问题描述

大家好,

我的网页中有一个问题,我正在批量发送电子邮件,而发送时我需要在标签中显示更新的状态,因为我正在使用新线程和ajax-计时器控件.
它在我的本地系统中正常工作.

但这在网站上不起作用.如果有人有解决方案,请帮助我.

在此先感谢

Hi All,

I have a problem in my web page where i am sending emails in bulk, while sending i need to display the updated status in a label, for that i am using a new thread and a ajax - timer control.
its working fine in my local system.

But it''s not working in the site. If anyone have solution please help me.

Thanks in advance

推荐答案

您想做的事是不可能的.如果您了解网站的运作方式,就会知道原因.您的页面类仅在服务器生成要发送给客户端的HTML时存在.它不会持续存在.通常,您可以通过与网站进行交互的Windows服务来做您想做的事情,也许只是通过排队发送电子邮件到数据库的地址即可.
What you want to do is impossible. If you understood how websites work, you''d understand why. Your page class only exists while the server is generating the HTML to send to the client. It does not persist. You''d typically do what you want through a windows service which your web site interacts with, perhaps just by queueing addresses to email into the DB.


这篇关于在网页中运行地面线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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