Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Danyl 6 posts 26 karma points
    Feb 23, 2011 @ 11:12
    Danyl
    0

    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.

  • Danyl 6 posts 26 karma points
    Feb 24, 2011 @ 09:54
    Danyl
    0

    Any ideas? :(

  • Danyl 6 posts 26 karma points
    Feb 25, 2011 @ 16:13
    Danyl
    0

    up

  • Danyl 6 posts 26 karma points
    Mar 03, 2011 @ 08:42
    Danyl
    0

    up

  • George 28 posts 71 karma points
    May 12, 2011 @ 07:48
    George
    0

    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:

    <script runat="server">
    protected void Page_Init(object sender, EventArgs e)
    {
        this.Page.IsAsync = true;
        //((umbraco.UmbracoDefault) this.Page). = false;
    }
    </script>

    ...but that didn't work because this.Page.IsAsync is read only.

Please Sign in or register to post replies

Write your reply to:

Draft