Hide HTML page before IE's done loading?

Discussion in 'ASP .Net' started by Lars Netzel, Jul 28, 2006.

  1. Lars Netzel

    Lars Netzel Guest

    I have a pretty big page that on some sloconnections load about 50% of the
    page and then before the page has finished loading the rest the user changes
    a dropdownbox that causes a postback and then I of course if face with an
    Invalid Viewstate problem.

    How can I prevent the browser from shoign the page before it's fully loaded
    on the client?

    I'm sure I've heared abotu this before but I cannot find anything when
    searching on it

    best regards
    /Lars
     
    Lars Netzel, Jul 28, 2006
    #1
    1. Advertisements

  2. Put the whole thing i a div, make it hidden and use a javascript onLoad
    event handler unhide it. This might work with the body tag itself but
    if you do it with a div, you could have one div that says "Please
    wait..." and once the whole thing is loaded, switch that off and your
    main div on.

    Lars Netzel wrote:
    > I have a pretty big page that on some sloconnections load about 50% of the
    > page and then before the page has finished loading the rest the user changes
    > a dropdownbox that causes a postback and then I of course if face with an
    > Invalid Viewstate problem.
    >
    > How can I prevent the browser from shoign the page before it's fully loaded
    > on the client?
    >
    > I'm sure I've heared abotu this before but I cannot find anything when
    > searching on it
    >
    > best regards
    > /Lars
     
    cannontrodder, Jul 28, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christopher Ambler

    Re: loading a html page into a aspx page

    Christopher Ambler, Aug 28, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    1,331
    John Saunders
    Aug 28, 2003
  2. =?Utf-8?B?Si5CLg==?=

    Hide message before redirect to another .aspx page.

    =?Utf-8?B?Si5CLg==?=, Jan 9, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    923
    John Timney \(Microsoft MVP\)
    Jan 9, 2004
  3. Patrick Olurotimi Ige

    Executing a validating query before loading a page

    Patrick Olurotimi Ige, Jan 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    646
    IPGrunt
    Jan 27, 2005
  4. =?Utf-8?B?UGF0cmljay5PLklnZQ==?=

    validating user before loading a page?

    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Jan 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    448
    Patrick Olurotimi Ige
    Jan 27, 2005
  5. OM
    Replies:
    4
    Views:
    181
    Lasse Reichstein Nielsen
    Sep 18, 2003
  6. Zhidian Du
    Replies:
    0
    Views:
    316
    Zhidian Du
    Feb 21, 2004
  7. oneglenport-programming

    Loading html document before displaying it?

    oneglenport-programming, Mar 26, 2005, in forum: Javascript
    Replies:
    1
    Views:
    189
    Evertjan.
    Mar 27, 2005
  8. edfialk
    Replies:
    0
    Views:
    365
    edfialk
    May 10, 2007
Loading...