Showing posts with label async. Show all posts
Showing posts with label async. Show all posts

Monday, March 26, 2012

AJAX Async postback

Hi

I have a WebForm in this web form i am dynamically loading 6 User Controls these user controls has ajax update panel. & these update panel have web controls.

Now when i click any control of any UCs that click is causing a page post back. due to this all my other cotrols are getting reloaded & respectibve UCs page load is getting fired. I want to restrict this.

I want to add condition on each UC's page load event to check whether this postback is caused due to some other UC's event. If it is caused due to some other UCs event then dont process anything. If it is caused due to its own event then only process it.

I need this cause i see the performnce impact of this.

Hi,

if you set UpdateMode rproperty for each UpdatePanel to "conditional" you can avoid updating all update panels on every click. You will also need to check that your ChildrenAsTriggers property is set to "true".

However, if you do some time consuming procesing on the server you will still need to check which control caused asyncpostback.

-yuriy
http://couldbedone.blogspot.com


Hey yuriy

Thanks for your response. Can you jsut tell me how can i check which control caused Asyncpostback...thats what am lookinh for.


Property of the ScriptManager: AsyncPostBackSourceElementID

Wednesday, March 21, 2012

AJAX and ASYNC Pages

All,

I'm looking to implement the following scenario:

1. User clicks on a link.

2. A panel is raised indicating that a long running operation is about to begin.

3. A request to open a new window which will host an async page that will stream a pdf is made.

4. When the callback from the async page returns, I want it to trigger an action on the parent page to hide the progress panel.

Basically any examples of incorporating async page callbacks and ajax update panel callbacks.

Ariel

hello.

why do you need async pages to do this? is the server processing making a long web service call or perfomring an expensive db query?

The popup

http://ajax.alpascual.com/ModalPopup/ModalPopup.aspx

and then the PDF

http://alpascual.com/search/SearchResults.aspx?q=pdf

Hope that helps you finish the project