hi all, i dunno my page will load twice. when i debug, i found that in second load also is page.ispostback = false i really can't found the reason why my page will load twice without my order, and IsPostBack = False anyone got such experience b4
As others have indicated, 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.
For example, this line has wired up the load event twice which would cause it to double fire.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load, MyBase.Load
Make sure Load is only wired up once.
Mike Banavige
Marked as answer by Ming Xu - MSFT on Mar 25, 2011 09:47 AM
As others have indicated, 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.
Was searching for your earlier post elaborating the reason behind this. :)
I didn't get the link unfortunately.
Regards,
Naveen Jose ASP.NET Freelancer, Consultant
Please remember to click Mark as Answer on the post that helps you
kengkit
Member
120 Points
246 Posts
why load twice in my page?
Mar 19, 2011 11:38 AM|LINK
Lyra Belaqua
Contributor
2673 Points
552 Posts
Re: why load twice in my page?
Mar 19, 2011 12:11 PM|LINK
Yes, I have faced this issue before.
Identify if any image is not getting the proper path. Even check for any images from CSS also. It will surely resolved your issue.
Please don't forget to click "Mark as Answer" on the post that helped you.
Before printing, think about the environment, every 3000 A4 paper costs 1 tree.
naveenj
Contributor
6164 Points
1130 Posts
Re: why load twice in my page?
Mar 19, 2011 12:27 PM|LINK
Hi kengkit,
I will add to what Lyra said
Check for any image with src=""
Also worth a look: http://stackoverflow.com/questions/2009092/page-loads-twice-in-google-chrome
Naveen Jose
ASP.NET Freelancer, Consultant
Please remember to click Mark as Answer on the post that helps you
Small Peter
Contributor
2433 Points
484 Posts
Re: why load twice in my page?
Mar 19, 2011 01:17 PM|LINK
I am sorry, but I am not sure what do you mean by load twice?
kengkit
Member
120 Points
246 Posts
Re: why load twice in my page?
Mar 19, 2011 02:36 PM|LINK
Small Peter
Contributor
2433 Points
484 Posts
Re: why load twice in my page?
Mar 19, 2011 02:37 PM|LINK
Will it keep loading twice when published in the browser?
mbanavige
All-Star
134964 Points
15421 Posts
ASPInsiders
Moderator
MVP
Re: why load twice in my page?
Mar 19, 2011 03:15 PM|LINK
As others have indicated, 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.
For example, this line has wired up the load event twice which would cause it to double fire.
Make sure Load is only wired up once.
naveenj
Contributor
6164 Points
1130 Posts
Re: why load twice in my page?
Mar 19, 2011 03:20 PM|LINK
Hi Mike,
Was searching for your earlier post elaborating the reason behind this. :)
I didn't get the link unfortunately.
Naveen Jose
ASP.NET Freelancer, Consultant
Please remember to click Mark as Answer on the post that helps you
Praneet Rane
Member
147 Points
45 Posts
Re: why load twice in my page?
Jan 08, 2013 09:59 AM|LINK
Same happened in my project.
Do you know why this happens?have u used iframe there?
</div>