Is it possible in Umbraco to handle async calls from .NET user cotrol? All I need is to put: [code]<%@Page Async="true" @%>[/code]
But there is no place where @Page is available. In master template I also can't put this directive because this directive is only suitable for asp Page. I have some middle tier between umbraco-based front-end and WCF-service and I just can't call any async methods. If I try I get following error:
[code]Server Error in '/' Application. Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event.[/code]
I believe it is possible. Please let me know how. Thanx in advance.
Asynchronous calls from .NET controls
Hi,
Is it possible in Umbraco to handle async calls from .NET user cotrol?
All I need is to put:
[code]<%@Page Async="true" @%>[/code]
But there is no place where @Page is available. In master template I also can't put this directive because this directive is only suitable for asp Page.
I have some middle tier between umbraco-based front-end and WCF-service and I just can't call any async methods. If I try I get following error:
[code]Server Error in '/' Application.
Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event.[/code]
I believe it is possible. Please let me know how.
Thanx in advance.
Any ideas? :(
up
up
I'm having the same problem.
This page - http://our.umbraco.org/forum/developers/api-questions/8710-Asynchronously-call-a-web-method-from-a-user-control - seems to have some info, but makes the whole thing sound a bit difficult.
I tried:
...but that didn't work because this.Page.IsAsync is read only.
is working on a reply...