Alex Rivera | Logout

page loads twice in Google chrome

Asked 2010-01-05T21:05:00.043
38

Does anyone have any problems with Page_Load being executed twice in Google Chrome? It's a short question, i do not know what else to explain...

I have a simple asp.net page and in Firefox and IE all it's working fine. But in Chrome the Page_Load is fired twice...

Anyone has any ideas why?

Later EDIT: - what is strange is that i have 4 repeaters... binded with random values. The random methods are twice fired (because of page loaded twice) but the repeaters takes the INITIALLY values...so, the 2nd post back is somehow raised after the rendering step.

3rd edit: It happens ONLY at the refresh!

Solution (in my case): There was an empty img src, and that was the cause

Edit
Report

2 Answers

44

I notice this same issue in IE if the page contains img tags that don't have a src attribute (or the src is empty, etc). Not sure if Chrome does the same thing, but worth checking, right?

answered 2010-01-05T22:00:29.693
2

In addition to Chris Shaffer's answer which got me on the right track, I'd like to add that in my case there was also a <script> tag with an empty src that caused the problem.

Perhaps it applies to all elements with an empty src.

answered 2011-02-16T14:56:49.930

Your Answer