Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-10-2008
Member
 
Join Date: Aug 2006
Posts: 114
Page load in problem asp.net

Hi there

I have one application use C# for asp.net, when I debug and write code
inside the page_load, it is loading twice, also I put Is Not Post Back, it
still load two times, any one have the same problem, and how to solve it?

by the way, I am using asp.net 1.1 version.

Thanks i advance
Reply With Quote
  #2  
Old 25-10-2008
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Page load in problem asp.net

I had this problem today and spent quite a few hours on it.Finally I found out it was one of the <td> attributes that was causing
the problem. The "background" attribute was assigned a color code, where it was probably expecting an image, a file, or something. Here is the partial code:

<TD valign="bottom" align="left" background="#B6C8DE">

bgColor, not background, should be assigned a color code. But when you cut and paste in a hurry in the Properties Window in the .net IDE, sometimes that happens. Your page may not have the same problem asmine, but it most likely involves an error condition, or a bad
reference.
Reply With Quote
  #3  
Old 25-10-2008
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Page load in problem asp.net

I encountered this, too (with having an empty background value). This
seems to be a problem with alternative browsers only as it did show only
in Firefox and Opera.To me it seems like the parser is skipping the page or something - and requesting it once again to be sure the data send was not skipped or so.
Reply With Quote
  #4  
Old 25-10-2008
Member
 
Join Date: May 2008
Posts: 2,008
Re: Page load in problem asp.net

I too had this error, and after some hours of debugging I found out, it was because of an empty src-attribute in an image-tag, e.g.

<img src="" alt="" />


In the end of my pageload, I was setting this value dynamically via javascript, which is why I didn't figure it out at first. But I hereby confirm, that at least firefox will reload the page (silently, though) if this "error" is present. The problem wasn't there in IE7, and I haven't tested other browsers.

Hope this helps somebody.
Reply With Quote
  #5  
Old 25-10-2008
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Page load in problem asp.net

Thank you Katty, your solution solved the problem for me.

I had src="" in an IMG and also an IFrame, I don't know if the iframe also causes it. It was only affecting Firefox.

I would never have solved it without your help!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Page load in problem asp.net"
Thread Thread Starter Forum Replies Last Post
How to boost web page load on iPhone yamatoeisa Portable Devices 4 06-08-2013 12:02 PM
Page never load even on many refresh Austin Power Networking & Security 4 18-02-2011 07:49 AM
How to improve page load times Ronchi Software Development 5 12-01-2010 06:02 AM
Unable to load web page in firefox Ekadant Technology & Internet 3 12-05-2009 06:43 PM
Page refuses to load in Windows 7 Amaresh Technology & Internet 4 23-02-2009 09:10 AM


All times are GMT +5.5. The time now is 09:48 PM.