Enhancing User Experience One Control At A Time

Discussion in 'ASP .Net' started by Ryan, May 20, 2007.

  1. Ryan

    Ryan Guest

    Hello everyone,

    Here is what I would like to accomplish, I have a webpart 'portal'
    where each webpart is in an updatepanel. I would like the page to load
    and the webparts to load as they become available.

    Currently, the page renders after all controls/webparts are loaded.
    Then when there are postbacks, the updatepanels work great. Is there a
    way to do this with theses controls (built-in ajax.net type stuff) or
    will I need to finally delve into writing the ajax manually in the
    javascript :) I might be hoping for too much to do this auto-
    magically.

    Maybe asynchronous webparts would do the trick . . .

    Thanks and have a nice week!
    Ryan
     
    Ryan, May 20, 2007
    #1
    1. Advertisements

  2. Ryan

    bruce barker Guest

    with just a little rework you can. have all the webparts render as
    invisible (and do as little as possible) or render "loading...". then on
    browser onload fire off the ajax to load them.

    for this to look nice you need to size the the webparts on the render
    correctly.

    note: the browser will limit connections to allow only 2 ajax requests
    at the same time. if you use session, then the server limits to one
    request being serviced at a time.

    -- bruce (sqlwork.com)

    Ryan wrote:
    > Hello everyone,
    >
    > Here is what I would like to accomplish, I have a webpart 'portal'
    > where each webpart is in an updatepanel. I would like the page to load
    > and the webparts to load as they become available.
    >
    > Currently, the page renders after all controls/webparts are loaded.
    > Then when there are postbacks, the updatepanels work great. Is there a
    > way to do this with theses controls (built-in ajax.net type stuff) or
    > will I need to finally delve into writing the ajax manually in the
    > javascript :) I might be hoping for too much to do this auto-
    > magically.
    >
    > Maybe asynchronous webparts would do the trick . . .
    >
    > Thanks and have a nice week!
    > Ryan
    >
     
    bruce barker, May 21, 2007
    #2
    1. Advertisements

  3. Ryan

    Ryan Guest

    Hi Bruce, thanks for answering so quickly and the information! That is
    a great idea . . . and so simple! I can't wait to try it out . . .
    Thanks for the tips as well, I hadn't even considered that.

    Ryan



    On May 20, 7:10 pm, bruce barker <> wrote:
    > with just a little rework you can. have all the webparts render as
    > invisible (and do as little as possible) or render "loading...". then on
    > browser onload fire off the ajax to load them.
    >
    > for this to look nice you need to size the the webparts on the render
    > correctly.
    >
    > note: the browser will limit connections to allow only 2 ajax requests
    > at the sametime. if you use session, then the server limits toone
    > request being serviced at atime.
    >
    > -- bruce (sqlwork.com)
     
    Ryan, May 21, 2007
    #3
    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. qwerty
    Replies:
    3
    Views:
    9,503
    Scott Allen
    Sep 30, 2004
  2. =?Utf-8?B?REo=?=
    Replies:
    2
    Views:
    628
    =?Utf-8?B?REo=?=
    Dec 1, 2005
  3. Mad Scientist Jr
    Replies:
    0
    Views:
    905
    Mad Scientist Jr
    Mar 22, 2006
  4. Ben
    Replies:
    9
    Views:
    1,415
    John Timney \(MVP\)
    Jun 8, 2006
  5. flamesrock
    Replies:
    8
    Views:
    818
    Hendrik van Rooyen
    Nov 24, 2006
  6. Ro
    Replies:
    3
    Views:
    487
    Lawrence Kirby
    Jan 26, 2005
  7. Sinan Alkan
    Replies:
    0
    Views:
    547
    Sinan Alkan
    Oct 3, 2008
  8. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    812
    Jonathan Wood
    Feb 2, 2010
Loading...