Hello,
in order to prevent the timeout error dialog which is shown to the user in case of a timeout during an AJAX call, I tried modifying the AsyncPostBackTimeout ScriptManager property with the following code: it appears to be working, but can somebody confirm this is the right way to do this?
Also, I'd like to understand whether I can somehow send messages to the client during execution: I mean I have this ajax call which can take long (minutes) to complete on the server, and now (apparently) can prevent it to timeout. But how could I inform the client (browser) of the currently running task? Adding multiples Update() calls for the containing updatepanel does not work, e.g. messages are all displayed when all tasks complete (function exits). Is there a best practice to do this?
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
If DotNetNuke.Framework.AJAX.IsInstalled Then
DotNetNuke.Framework.AJAX.RegisterScriptManager()
DotNetNuke.Framework.AJAX.SetScriptManagerProperty(Page, "AsyncPostBackTimeout", New Object() {600})
End If
....
End If
....
End Sub
Thank you for any help,
al.