Thursday, 6 January 2011

Page Load event firing multiple times - why?

Today I had a weird problem - my Page Load event was firing twice for every visit, whether postback or not. I eventually found the problem:

It looks like an empty src attribute in an HTML img element is interpreted as a relative URL to the current page, thereby calling the page.

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!