Refresh page display?

Discussion in 'ASP .Net' started by RichGK, Sep 24, 2007.

  1. RichGK

    RichGK Guest

    In the following code loadSummaryData() is quite a slow SQL query and
    it prevents the page from displaying until the query has finished. I
    want the user to be able to log on and see the page (i.e in this
    example the "is logged on" message) before loadSummaryData() executes.
    Is there a way to do this?

    if (!IsPostBack)
    {
    lblMessages.Text = loEmployee.employeeFName + " is logged on.";
    loadSummaryData();
    }
    else
    {
    }
     
    RichGK, Sep 24, 2007
    #1
    1. Advertising

  2. You would need to use some sort of "AJAX" remote scripting method to populate
    your display message because the LoadSummaryData method is a blocking call.

    -- Peter
    Recursion: see Recursion
    site: http://www.eggheadcafe.com
    unBlog: http://petesbloggerama.blogspot.com
    BlogMetaFinder: http://www.blogmetafinder.com



    "RichGK" wrote:

    > In the following code loadSummaryData() is quite a slow SQL query and
    > it prevents the page from displaying until the query has finished. I
    > want the user to be able to log on and see the page (i.e in this
    > example the "is logged on" message) before loadSummaryData() executes.
    > Is there a way to do this?
    >
    > if (!IsPostBack)
    > {
    > lblMessages.Text = loEmployee.employeeFName + " is logged on.";
    > loadSummaryData();
    > }
    > else
    > {
    > }
    >
    >
     
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Sep 24, 2007
    #2
    1. Advertising

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. brian lanning
    Replies:
    0
    Views:
    603
    brian lanning
    Jul 29, 2003
  2. =?Utf-8?B?U1M=?=
    Replies:
    3
    Views:
    3,838
    Juan T. Llibre
    May 15, 2005
  3. Per Magnus L?vold
    Replies:
    1
    Views:
    5,133
    John C. Bollinger
    Oct 8, 2004
  4. Pkenty
    Replies:
    0
    Views:
    399
    Pkenty
    May 28, 2004
  5. Jawahar Rajan
    Replies:
    1
    Views:
    294
    Adrienne
    Oct 1, 2003
Loading...

Share This Page