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
{
}
Peter Bromberg [C# MVP] - 24 Sep 2007 17:46 GMT
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
> In the following code loadSummaryData() is quite a slow SQL query and
> it prevents the page from displaying until the query has finished. I
[quoted text clipped - 10 lines]
> {
> }