# How to enable AJAX mode in web forms

**URL:** <https://discuss.workflowgen.com/t/how-to-enable-ajax-mode-in-web-forms/282>\
**Category:** Form Designer\
**Created:** [April 1, 2015, 12:41am UTC](https://discuss.workflowgen.com/t/how-to-enable-ajax-mode-in-web-forms/282 "2015-04-01T00:41:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [April 1, 2015, 12:41am UTC](https://discuss.workflowgen.com/t/how-to-enable-ajax-mode-in-web-forms/282/1 "2015-04-01T00:41:54Z")

</div>

#### Using the Form Designer

If you’re using the Form Designer, enable AJAX mode by opening the **Form configuration** panel and checking **Enable AJAX mode** on the **General** tab.

> **Note:** AJAX mode is available in the Form Designer as of WorkflowGen version 6.0.

#### Using Visual Studio

If you’re using Visual Studio to develop a custom ASPX form in AJAX mode, follow the instructions below.

1. In the `<form runat="server">` element, add a `ScriptManager` at the beginning of the form and wrap all the form content in the `contenttemplate` of an `UpdatePanel`.

2. Since standard `FileUpload` controls are not supported inside the `UpdatePanel`, use our custom `WorkflowFileUpload` user control for your attachment needs.

3. Add the following line in the page constructor to prevent an issue caused by WorkflowGen with the GridView when updating a row:

4. Register the postback triggers either in the `Page_Load` event or directly in the ASPX page.
