2009-04-09

Double page load/postback

I have spent 3 days once to figure out why an ASPX page does a double page postback when it shouldn't. The first request was OK, then immediately a second postback followed without the post data. This strange behavior occurred only in Firefox.

I discovered what the issue was:
I had an image control on the page with it's src attribute empty. Firefox uses the current page's URL as the src of the image. Hence the second postback.

This guy explains it better than me:

No comments: