Results 1 to 5 of 5

Thread: Page load in problem asp.net

  1. #1
    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

  2. #2
    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    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.

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    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!

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,616,039.36133 seconds with 16 queries