shachar8

hi all.

in WebService1 i have a function that insert a new row to the DB (sqlserver).

after this insert action i call another function in another webservice, this function uses the data that was inserted earlier.

the code look like this:

MyDal.InsertNewRow(.....params);

WebSvc2.Func();

BUT - i must check that the data is actualy inserted before i call WebSvc2.Func();.

so - how can i make the line of code waits until i veirfy the data exist in the db




Re: Visual C# General help with WebService

H. Tony

it's sequential action, so there's no special 'wait' needed, you just insert the row first, such as execute insert command then as long as there's no exception or error code, the data should be there and you can call the 2nd function.