AJAX Mode
Custom ASPX forms in AJAX mode
If you're developing a custom ASPX form in AJAX mode, do the following:
In the
<form runat="server">element, add aScriptManagerat the beginning of the form and wrap all the form content in thecontenttemplateof anUpdatePanel.📌 Example
<form id="form1" name="form1" runat="server"> <asp:scriptmanager id="ScriptManager1" runat="server"></asp:scriptmanager> <asp:updatepanel id="UpdatePanel1" runat="server"> <contenttemplate> ... form content ... </contenttemplate> </asp:updatepanel> </form>Since standard
FileUploadcontrols are not supported inside theUpdatePanel, use the customWorkflowFileUploaduser control for your attachment needs.Add the following line in the page constructor to prevent an issue that can occur when updating a row in a GridView:
this.UseClientSideOptimization = false;You will see no difference at runtime, since all this does is prevent a postback when clicking the Update button and the validation fails. The
UpdatePanelalready prevents postback.Register the postback triggers either in the Page_Load event or directly in the ASPX page for each of your ASP.NET controls that perform a
postbackorsubmit to WorkflowGen.To do this in the Page_Load event:
ScriptManager.GetCurrent(this).RegisterPostBackControl(MyControlID);To do this in the ASPX page:
Add a
<Triggers>element to theUpdatePanel.Add a
<asp:PostBackTrigger ControlID="MyControlID" />element for each of the controls that requires a postback trigger.
Last updated