473,382 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Asynchronus call in ASP.NET page?

Hi
If I have 2 different controls in a webpage Gridcontrol and reportviewer and
an asynchronus call for reportviewer query.

AddOnPreRenderCompleteAsync(new BeginEventHandler(BeginAsyncOperation),new
EndEventHandler(EndAsyncOperation));

Wil the Gridcontrol not be rendered and visible on thepage until the
asynchrounus query has completely run?

Thanks in advance.
A
Jul 24 '07 #1
2 1436
nothing will be render until the query completes. once your asynch
handler completes, page processing starts back up to produce the html
and send it back to browser.

in general the page will not render any faster than if you did a sync
query, async processing allows th page worker thread to return to th
pool to process other request while your async process thread runs.

-- bruce (sqlwork.com)

Adnan wrote:
Hi
If I have 2 different controls in a webpage Gridcontrol and reportviewer and
an asynchronus call for reportviewer query.

AddOnPreRenderCompleteAsync(new BeginEventHandler(BeginAsyncOperation),new
EndEventHandler(EndAsyncOperation));

Wil the Gridcontrol not be rendered and visible on thepage until the
asynchrounus query has completely run?

Thanks in advance.
A
Jul 24 '07 #2
Hi Bruce

This means asynchronous model is not the answer to what I want to implement.

I want to display the grid - while the query of the report keeps executing
asynchrouonusly and the report comes up only when the query has completed.
(Something like on a dashboard all reports come up when they have the result
set where the rest keep running).

Am I looking in the wrong direction here?

Thanks
A.

"bruce barker" wrote:
nothing will be render until the query completes. once your asynch
handler completes, page processing starts back up to produce the html
and send it back to browser.

in general the page will not render any faster than if you did a sync
query, async processing allows th page worker thread to return to th
pool to process other request while your async process thread runs.

-- bruce (sqlwork.com)

Adnan wrote:
Hi
If I have 2 different controls in a webpage Gridcontrol and reportviewer and
an asynchronus call for reportviewer query.

AddOnPreRenderCompleteAsync(new BeginEventHandler(BeginAsyncOperation),new
EndEventHandler(EndAsyncOperation));

Wil the Gridcontrol not be rendered and visible on thepage until the
asynchrounus query has completely run?

Thanks in advance.
A
Jul 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Perdit | last post by:
My 1st page calls a 2nd that uses same data from a database. What is the best way to get the data in the second: a new call to the database or passing array through session variable?? I seems...
3
by: foldface | last post by:
Hi This might be a bit tricky. I want to call a method of a class using the setTimeout code, ok, can do this like this: var instance = this; timerID = window.setTimeout( function() {...
2
by: David | last post by:
I have Oracle 9.2 i I want to make async querys calls. Do is possible? Thanks a lot AA
0
by: Eugene Safrankow | last post by:
Hello All! I've encountered with the error when I call a method of dependency library (written in managed VC++) from Smart Client placed on a web page. In general, I make a call to the Windows...
4
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage...
5
by: Stephen Barrett | last post by:
I have read many threads related to async fire and forget type calls, but none have addressed my particular problem. I have a webpage that instantiates a BL object and makes a method call. The...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
11
by: yangsuli | last post by:
i want to creat a link when somebody click the link the php script calls a function,then display itself :) i have tried <a href=<? funtion(); echo=$_server ?>text</a> but it will call the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.