# How to force a PostBack when Ajax mode is enabled

**URL:** <https://discuss.workflowgen.com/t/how-to-force-a-postback-when-ajax-mode-is-enabled/909>\
**Category:** Form Designer\
**Created:** [November 2, 2017, 3:04pm UTC](https://discuss.workflowgen.com/t/how-to-force-a-postback-when-ajax-mode-is-enabled/909 "2017-11-02T15:04:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [November 2, 2017, 3:04pm UTC](https://discuss.workflowgen.com/t/how-to-force-a-postback-when-ajax-mode-is-enabled/909/1 "2017-11-02T15:04:30Z")

</div>

Note that AJAX mode uses an UpdatePanel which disables controls from doing PostBacks. The solution would be to force the PostBack on specific controls by adding the below code in the Page\_Load event of the page:

```auto
protected void Page_Load(object sender, EventArgs e) {
  ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
  scriptManager.RegisterPostBackControl(CONTROL_ID);
  //Further code goes here....
}

```
