Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
C#
foreach (DataRow dr in Ds.Tables[0].Rows)
{
 WPService4Sales.WPServiceLive.Service sj = new WPService4Sales.WPServiceLive.Service();
 doc =  sj.INSERT_SALES_WITH_CUSTOMER(username, passwrd, dr["Region"].ToString(), dr["StoreName"].ToString(), dr["StoreCode"].ToString(), dr["AlternateStoreCode"].ToString(), dr["BillDate"].ToString(), dr["BillNumber"].ToString(), dr["CustomerCode"].ToString(), dr["CustomerName"].ToString(), dr["Mobile"].ToString(), dr["Email"].ToString());

}

This Is My Sample Code, Guide me to do further using threading concept
Posted
Updated 18-Apr-15 12:47pm
v2
Comments
OriginalGriff 18-Apr-15 3:27am    
And?
What help do you need?
What part of threading do you not understand?
Anbu_Mannan 18-Apr-15 3:45am    
Here i'm simply using for loop to send a data, but i want to lock that object until getting an response from a service, using threading
OriginalGriff 18-Apr-15 4:06am    
And? What have you done towards that (other than asking here)?

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