WebFlyPostbackManager handling of error and timeout

7 replies. Last post: October 14, 2010 11:46 PM by Niven Prasetya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi all,

I have defined a WebFlyPostBackManager as shown below:

<ISWebDesktop:WebFlyPostBackManager ID="PostBackManager" runat="server"
ServiceUrl="SearchPage.aspx"
ServiceType="WebForm" AutoEventWireup="true"
WebServiceResponseFormat="Json"
ShowLoaderOnBusy="True" LoaderHostControlID="spStatus"
BlockPageUIOnBusy="True" EnableUIMode="True" >
<FlyPostBackSettings PostInputControls="False" PostViewState="False" />
<LoaderTemplate>
<img src="images/is_progress-16.gif" align="middle" alt="" />
Searching...
</LoaderTemplate>
<ClientSideEvents OnError="WebFlyPostBackManager_OnError"
OnResponseSuccess="WebFlyPostBackManager_OnResponseSuccess"
OnTimeout="WebFlyPostBackManager_OnTimeout" />
</ISWebDesktop:WebFlyPostBackManager>

I have defined the ClientSideEvents like that:

function WebFlyPostBackManager_OnError(controlId, methodName, errorMessage, error) {
alert(error.string + "\n" + error.raw.text);
var PostBackManager = ISGetObject(controlId);
PostBackManager.Abort(methodName);
}

function WebFlyPostBackManager_OnResponseSuccess(controlId, methodName, returnValue) {
...
}

function WebFlyPostBackManager_OnTimeout(controlId, methodName) {
alert("TimeOut");
}

My problem is that when the called method goes in error the error message is displayed as expected, but after some time also the timeout message is diplayed. In my opinion that should not be happen, and just one of WebFlyPostBackManager_OnError, WebFlyPostBackManager_OnResponseSuccess and WebFlyPostBackManager_OnTimeout must be called back.

Regards,

Vince

All times are GMT -5. The time now is 7:43 PM.
Previous Next