<p>I get this error on an update panel within a popupControlExtender which is within a dragPanelExtender.</p>

<p>I see that a lot of other people have this issue and have various fixes none of which have worked for me.</p>

<p>I would love to hear a logical explanation for why this is occurring and a foolproof way to avoid such issues in the future.</p>

<p>I have found that like others maintain this error does not occur when the trigger is a LinkButton rather than an ImageButton, still wondering if anyone has an explanation.</p>

[{'answer_id': 59480, 'author': 'Thunder3', 'author_id': 2832, 'author_profile': 'https://Stackoverflow.com/users/2832', 'pm_score': 2, 'selected': True, 'text': '<p>My best guess is that the UpdatePanel is not able to write out the custom "async" property to the postback request properly. This is likely due to blocking from one of the controls wrapping it (my gut feeling is that it\'s the popupControlExtender - it tends to have odd behavior with updatepanels, as it is intended to manage the events inside it for it\'s show/hide purposes).</p>\n\n<p>I would recommend either removing the updatepanel and rolling your own solution for your specific business need for having it there, or implementing your own popup script (probably slightly easier to write).</p>\n\n<p>Incidentally, for some background, the "this._postbackSettings.async" is your AJAX.NET framework trying to figure out whether this is an async call or not. You might be able to overcome it by setting this programaticly before the postback is sent (catch the postback event and add the field to the postback request if it is not already there).</p>\n\n<p>Just some thoughts...I do not believe there is a "plug and play" answer for this one!</p>\n'}, {'answer_id': 407824, 'author': 'Matthew Timbs', 'author_id': 21343, 'author_profile': 'https://Stackoverflow.com/users/21343', 'pm_score': 1, 'selected': False, 'text': '<p>Settign "EnablePartialRendering" to false on the ScriptManager control prevents the error, but it is not an optimal solution.  Losing the benefit of partial rendering could be a big deal, depending on your application.</p>\n\n<p>Just for the record, I wasn\'t doing exactly the same as other folks who saw the error.  I have a PopupControlExtender, in which is a checkboxlist.  I added a "select all" link with a javascript method to programmatically select/deselect all.  I\'m not using an Imagebutton.  I didn\'t see the error before adding the javascript and now even after removing it the error remains.  There has to be another change I\'m missing.</p>\n\n<p>I hope this helps someone...</p>\n\n<p>--Matt</p>\n'}, {'answer_id': 5105155, 'author': 'Gorgsenegger', 'author_id': 412036, 'author_profile': 'https://Stackoverflow.com/users/412036', 'pm_score': 2, 'selected': False, 'text': '<p>I\'ve had the same problem and haven\'t really found any satisfying solution until I ended up on <a href="https://siderite.dev/blog/thispostbacksettingsasync-is-null-or.html" rel="nofollow noreferrer">https://siderite.dev/blog/thispostbacksettingsasync-is-null-or.html</a> which does exactly what I want.</p>\n\n<p>Just to avoid problems with possible dead links in the future here is the code:</p>\n\n<pre><code>var script = @"\nif (Sys &amp;&amp;\n    Sys.WebForms &amp;&amp; Sys.WebForms.PageRequestManager &amp;&amp;\n    Sys.WebForms.PageRequestManager.getInstance) \n{\n    var prm = Sys.WebForms.PageRequestManager.getInstance();\n    if (prm &amp;&amp;\n       !prm._postBackSettings)\n    {\n        prm._postBackSettings = prm._createPostBackSettings(false, null, null);\n    }";\n\nScriptManager.RegisterOnSubmitStatement(\n    Page, \n    Page.GetType(), \n    "FixPopupFormSubmit", \n    script);\n</code></pre>\n\n<p>In case of a submit without the _postBackSettings being set it creates them, causing the null reference exception to disappear as _postBackSettings.async is then available.</p>\n\n<p>Hope this helps,</p>\n\n<p>G.</p>\n'}]
['https://Stackoverflow.com/questions/57586', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3821/']