Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C#.net loop delay

Status
Not open for further replies.
Mar 20, 2003
103
AU
I got the following script.
Is there a way to delay the loop for 5 seconds on every loop?

while (rdrCust.Read())
{
sms_url = Convert.ToString(rdrCust[1]);
smsID = Convert.ToInt32(rdrCust[0]);

String strGet = sms_url;

WebRequest wrGETURL = WebRequest.Create(strGet);
wrGETURL.GetResponse();

cmdSQL.CommandText="UPDATE NATPROMO SET SEND='T' where ID = " + smsID + ";";
cmdSQL.ExecuteNonQuery();

}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top