Hi Mike,
Based on your description, I think the double postback issue is actually
occuring when your server-side code will block/wait for a while rather than
execute immediately, so the "under debugging mode" is only a condition
which trigger this cause.
For ASP.NET web page double postback, I've also met some similar issues
before and here are some of the causes:
** Some html markup (such as the meta fresh tag or a <imgor css image
style ) that point to the page itself which cause an additional get postback
** certain server-side event handler be registered twice(usually in vb.net
web page)
** some control may cause postback event be submit twice(the SubmitButton
which configured as image style...)
for your scenario, I think one possible cause is your page's response will
write out some certain html tag that cause a new request to the page
itself. Since it will occur when you wait a while at server-side(such as
break at debugger), maybe at that time, the markup is send back to client
and the browser send a new request). You can check the following things to
further verify the behavior:
1) Check IIS log on the server and see what kind of request is the second
duplicated one(get or post)
2) Check whether all the page events are executed twice or only the
particular postback event
If you have any other finding, please also feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.