.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

using asynchronous pages to perform asynchronous data binding

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net

hi all,
I have a question about using asynchronous pages to perform asynchronous data binding. I searched google and found this sample code here http://msdn.microsoft.com/en-us/magazine/cc163725.aspx
("Wicked Code: Asynchronous Pages in ...")

public partial class AsyncDataBind : System.Web.UI.Page
    private SqlConnection _connection;
    private SqlCommand _command;
    private SqlDataReader _reader;

    protected void Page_Load(object sender, EventArgs e)
        if (!IsPostBack)
            // Hook PreRenderComplete event for data binding
            this.PreRenderComplete +=
                new EventHandler(Page_PreRenderComplete);

            // Register async methods

View Complete Post

More Related Resource Links

Cutting Edge: Revisiting Asynchronous ASP.NET Pages


If you need to scale up an existing Web application, you should first look to asynchronous operations, says Dino Esposito. He explains how new features coming in ASP.NET MVC 2 make this easier.

Dino Esposito

MSDN Magazine April 2010

Wicked Code: Asynchronous Pages in ASP.NET 2.0


ASP.NET 2.0 is replete with new features ranging from declarative data binding and Master Pages to membership and role management services. But my vote for the coolest new feature goes to asynchronous pages, and here's why.

Jeff Prosise

MSDN Magazine October 2005

Sending Asynchronous emails from Asp.Net Web pages

Hey Guys, Here is my situation and hopefully someone could guide me in the right direction. I have a shared or static class in my website (App_Code folder) which has static methods to send emails asychronoulsy. So whenever there is an exception in any of my pages or classes I call these methods to send an email to support asynchronously. Now when there is an exception in a page, to route that exception asynchronously I need to have Async = "true" for that page. I have more than 50 pages and I don't want to set Async= "true" on every page as I read that it affects performance. So I was wondering if there is any way I could send emails asynchronously without having to set async = "true" on every page. Thanks for your time,   Uday.    

Can a Synchronous and Asynchronous Transformation in one data flow

Hi Guys, Can a Synchronous and Asynchronous exist in one data flow? I mean, in my data flow, i have 5 Synchronous and 1 Asynchronous Transformation in the end all in one flow. The output is not the way it was use to be because im introducing a Asynchronous Transformation at the end for 2 columns. Any suggestions? Thanks,

Asynchronous requests in WCF service implementation, any support like ASP.NET asynchronous pages?

What if my WCF service implementation executes some IO operation which may take a while, say 5 seconds.  Ideally I would like to return the thread executing this service request back to the pool to handle other incoming requests while I'm waiting on the IO.  ASP.NET introduced asynchronous pages to address this issue (http://msdn.microsoft.com/en-us/magazine/cc163725.aspx).  This allows for much better resource use and improves the responsiveness of the server.  Does the WCF hosting service allow for something similar? Thanks, Nick

asynchronous call for data population in user control


i have a user control in which i want  to populate a drop down on blur event of text box asynchronously.. i tried with page method but it gives error as method is undefined.. then i tried with writing a web service..
and called a web service method in javascript on user control.. this also gives the same error as method is undefined...project is using master pages.. so the script manager is registered in master page..
so i added service reference as

ScriptManager sm = ScriptManager.GetCurrent(this.Page);
            sm.Services.Add(new ServiceReference("../Controls/MeetingTime.asmx"));

in user control...

below is my javascript call..

function getMeetingTime()
       var uclcmbUserId = document.getElementById('<%= uclcmbActiveClients.ClientID %>'+'<%= uclcmbActiveClients.ActualComboId%>');       

How to extract large data from SQL to CSV using Asynchronous function



I have a table growth 100000row per day, I'm facing many problems  to export data from this table using ASP.net page.

I don't know how to apply this scenario:

Senerio 1:

1- run Asynchronous function to export data from SQL for specified period to CSV file (without locking the table)

2- Refresh page every 5 sec in order to track the status of extracting data

3- compress the file 

4- Stop refreshing and showing the download link in order to download the compressed file


Senerio 2:

1- run Asynchronous function to export data from SQL for specified period to CSV file (without locking the table)

3- compress the file 

4- send the compressed file by Email

thank you,

Asynchronous Pages

The article Asynchronous Pages was added by codenickel on Saturday, October 30, 2010.

Asynchronous Pages: Objective: Improves theScalability of website & Efficient design for time consuming process.Note: It should not be confused with Asynchronous request from Client side.AJAX used to improve the end user interface,where as Asynchronous

Binding WPF Controls to an Entity Data Model

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

jQuery live() and ASP.NET Ajax asynchronous postback

The issue is that normally $(document).ready() is called when the DOM is ready to be manipulated. But this doens't happen after an ASP.NET Ajax asynch postback occurs.

This means that the initial jQuery bindings won't be automatically available after the asynchronous postback is over. I underline "automatically" here because my last post describes more possibilities, how this issue can be worked around.

Binding WPF Controls to an Entity Data Model

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

Cutting Edge: Live Data Binding in ASP.NET AJAX 4.0


Dino Esposito discusses various forms of client-side data binding as they are coming out in ASP.NET AJAX 4.0, focusing on some advanced features of data binding and observable objects.

Dino Esposito

MSDN Magazine December 2009

Cutting Edge: Data Binding in ASP.NET AJAX 4.0


In this article, Dino reviews the pillars of real-world AJAX development as supported in ASP.NET AJAX 4.0. In doing so, he mostly focuses on client-side templates and data-binding but doesn't ignore other goodies, such as ADO.NET Data Services proxy classes and programming facilities.

Dino Esposito

MSDN Magazine October 2009

Concurrent Affairs: Solving The Dining Philosophers Problem With Asynchronous Agents


We use the new Asynchronous Agents Library in Visual C++ 2010 to solve the classic Dining Philosophers concurrency problem.

Rick Molloy

MSDN Magazine June 2009

Dynamic WPF: Create Flexible UIs With Flow Documents And Data Binding


Flow documents offer enormous flexibility in arranging text layout and pagination, but they don't support data binding, so you can't dynamically change content. Here we build a component to solve that problem.

Vincent Van Den Berghe

MSDN Magazine April 2009

Windows with C++: Asynchronous WinHTTP.


This month's column explains how to use Windows HTTP Services, or WinHTTP, the new, powerful API for implementing HTTP clients.

Kenny Kerr

MSDN Magazine August 2008

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend