Click here to Skip to main content
16,019,614 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 26-Oct-10 2:56am
v2

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900