Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What could be the reason to hit page_load more than once

Tags:

asp.net

When I click the Button I am loading one page. i am having some controls in the page_load.

but the problem is my page_load is hitting more than once.

Please can any body explain me what could be the possible reasons for hitting the page_load multiple times.

Thanks

like image 500
Sandy Avatar asked Jan 17 '26 22:01

Sandy


1 Answers

Is hitting Page_Load twice your issue?

Most probably its due to asp:Image or img without src defined.

To quote mbanavige of ASP.NET Forums,

if you have an img tag with an empty/missing src attribute, then the browser may re-request the current page (or may request the default page) why trying to satisfy the empty src for that img tag.

Another possibility that occurs from time to time is that the page_load event has been wired up twice.

Related: page loads twice in Google chrome

like image 51
naveen Avatar answered Jan 19 '26 18:01

naveen