Mar 15, 2011, 6:49 AM
[CLOSED] Button AjaxEvents Timeout
Hi,
We are used to timeout property in button control when upload the file process. The following source are used to define timeout property
But failure alert can not show.
I want to show failure alert if upload process is timeout. Here how it is working timeout or can i define timeout method in different process?
Please reply asap
We are used to timeout property in button control when upload the file process. The following source are used to define timeout property
<input type="file" id="inputFile" name="inputFile" style="width: 420px;" class="manitatory"
runat="server" />
<ext:Button ID="btn_AttachmentOk" runat="server" Width="120px" Text="Ok" MinWidth="70px"
IconCls="ok1">
<AjaxEvents>
<Click OnEvent="AttachmentOk_Click" Failure="ShowFail();" ShowWarningOnFailure="true"
Timeout="120000" Success="if (#{hidAttachSuccess}.getValue()=='true'){ #{WindowAttachment}.hide()} else {ShowError();}">
</Click>
</AjaxEvents>
</ext:Button>
Here we defined 2 minutes (120000) for timeout property. If the user can upload large volume of file to exceed 2 minutes then we will show failure alert. But failure alert can not show.
I want to show failure alert if upload process is timeout. Here how it is working timeout or can i define timeout method in different process?
Please reply asap
Last edited by Daniil; Mar 21, 2011 at 7:14 PM.
Reason: [CLOSED]