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 aScriptManager
at the beginning of the form and wrap all the form content in thecontenttemplate
of anUpdatePanel
.📌 Example
Since standard
FileUpload
controls are not supported inside theUpdatePanel
, use the customWorkflowFileUpload
user 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:
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
UpdatePanel
already 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
postback
orsubmit to WorkflowGen
.To do this in the Page_Load event:
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