在后台浏览.aspx页面 [英] ruuning .aspx page at background

查看:82
本文介绍了在后台浏览.aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有gridview的页面Sendsms.aspx

gridview包含要发送短信的记录数.

现在,当我单击发送"按钮时,我正在发送短信,就像发送短信到第一条记录,然后等待5分钟以等待他的答复,如果我没有收到回复,则再次发送短信给下一个等待答复5分钟,依此类推. ..

现在在这个senario中,当我发送短信时,我必须在同一页面上等待直到得到回复..如果我单击其他页面,sendms.aspx页面将关闭..所以我想在后台运行该页面.这样,即使我进入短信发送的任何页面,也会自动在后台运行..

请帮助其紧急进行.

I am having page Sendsms.aspx with gridview

gridview contains the no of records to whom sms to be sent.

Now when i click on send button i am sending sms on by one like send sms to first record then wait 5 min for his reply, if i dont get reply then send sms to next one again wait for reply 5 min and so on....

now in this senario when i am sending sms i have to wait on same page till i get reply..and if i click on some other page that sendsms.aspx page goes off..so i want to run that page at background..so that even if i go on any page that sms sending will be running at back automatically..

please help its urgant.

推荐答案

该页面不应更改状态,而只能显示它.不要在客户端上存储长时间运行的进程所需的数据.

生成页面时,还要生成发送SMS消息的时间表.将它们存储在服务器上的数据库中.创建一个服务,以定期检查数据库中的到期"消息.

收到响应后,请对其进行评估,并在必要时取消所有未完成的计划邮件.

使用您的客户端轮询来自服务器的响应.

干杯.
The page should not alter state, only display it. Don''t store data required for long-running processes on the client.

When you generate the page, also generate the schedule that the SMS messages will be sent. Store these in a database on the server. Create a service that checks the database periodically for ''due'' messages.

As responses come in, evaluate them and, if necessary, cancel any outstanding scheduled messages.

Use your client to poll responses from the server.

Cheers.


这篇关于在后台浏览.aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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