manishsawant
MIS
Hi,
I want to load my page Asynchronously. I tried using
Page.RegisterAsyncTask( new PageAsyncTask(new BeginEventHandler(this.BeginAsyncBindGrid),
new EndEventHandler(this.EndAsyncBindGrid), new EndEventHandler(this.TimeoutHandler), true) );
BeginEventHandler returns IAsyncResult but i dont have it as i have to create a object of a class and call a method to get the dataset. I can't call a web service and i cant use SQLCommand.BeginExecuteReader. I want to return the dataset that i am getting as ASyncResult. Is there any way to do this.
What i want to do is to load the page and then the grid should be loaded. The user shouldnt wait for the page to load as it takes time for the grid to load. Is there any other way of doing this.
I am using ASP.net 2.0.
Thanks,
Manish
I want to load my page Asynchronously. I tried using
Page.RegisterAsyncTask( new PageAsyncTask(new BeginEventHandler(this.BeginAsyncBindGrid),
new EndEventHandler(this.EndAsyncBindGrid), new EndEventHandler(this.TimeoutHandler), true) );
BeginEventHandler returns IAsyncResult but i dont have it as i have to create a object of a class and call a method to get the dataset. I can't call a web service and i cant use SQLCommand.BeginExecuteReader. I want to return the dataset that i am getting as ASyncResult. Is there any way to do this.
What i want to do is to load the page and then the grid should be loaded. The user shouldnt wait for the page to load as it takes time for the grid to load. Is there any other way of doing this.
I am using ASP.net 2.0.
Thanks,
Manish