alougher
June 11th, 2009, 06:47 PM
I have an aspx page with no code behind and trying to set the async property as follows:
<%@ Page Language="VB" Async="true" AutoEventWireup="false" %>
But when executing for an example a web service request I get the following error:
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.
Is this because async only works with code behind?
<%@ Page Language="VB" Async="true" AutoEventWireup="false" %>
But when executing for an example a web service request I get the following error:
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.
Is this because async only works with code behind?