By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,217 Members | 1,227 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,217 IT Pros & Developers. It's quick & easy.

Asynchronous Delegate and Double Commit Problem

P: n/a
Hi there,

Can anyone tell me why invoking a single SQL insert statement (well, rather,
a method that performs a SQL insert) using an asynchronous delegate should
result in twice the number of records being inserted? Am I just making a
mistake somewhere? (though I don't get double the records if I call the
method synchronously.)

Thanks,
Darryl
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi again,

Sorry for posting this problem. I don't know what the problem is, but I
only get it if the asynchronous call is generated (indirectly) by clicking
on an ASP.NET Web Form. If I bypass the form and (indirectly) generate the
call using an XML web service, the double commit problem disappears. I am
guessing I don't handle postback right, though I still don't know why this
side-effect should only appear on asynchronous calls.

Darryl
"Darryl A. J. Staflund" <da*************@shaw.ca> wrote in message
news:#H**************@TK2MSFTNGP10.phx.gbl...
Hi there,

Can anyone tell me why invoking a single SQL insert statement (well, rather, a method that performs a SQL insert) using an asynchronous delegate should
result in twice the number of records being inserted? Am I just making a
mistake somewhere? (though I don't get double the records if I call the
method synchronously.)

Thanks,
Darryl

Nov 16 '05 #2

P: n/a
jm
Is autoeventwireup set to false?

"Darryl A. J. Staflund" <da*************@shaw.ca> wrote in message news:<OB**************@tk2msftngp13.phx.gbl>...
Hi again,

Sorry for posting this problem. I don't know what the problem is, but I
only get it if the asynchronous call is generated (indirectly) by clicking
on an ASP.NET Web Form. If I bypass the form and (indirectly) generate the
call using an XML web service, the double commit problem disappears. I am
guessing I don't handle postback right, though I still don't know why this
side-effect should only appear on asynchronous calls.

Darryl
"Darryl A. J. Staflund" <da*************@shaw.ca> wrote in message
news:#H**************@TK2MSFTNGP10.phx.gbl...
Hi there,

Can anyone tell me why invoking a single SQL insert statement (well,

rather,
a method that performs a SQL insert) using an asynchronous delegate should
result in twice the number of records being inserted? Am I just making a
mistake somewhere? (though I don't get double the records if I call the
method synchronously.)

Thanks,
Darryl

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.