Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can get a client-side "hook" when the update panel is about to fire. This means that you could, at least, temporarily disable the text boxes (or have some sort of 'please wait' notification) while the update panel is refreshing.</p> <p>The following snippet of ASP.NET/Javascript shows how to intercept the update panels firing and disable the textboxes.</p> <pre><code>&lt;form id="form1" runat="server"&gt; &lt;asp:ScriptManager runat="server"&gt;&lt;/asp:ScriptManager&gt; &lt;div&gt; &lt;asp:UpdatePanel runat="server" ID="updatePane1"&gt; &lt;ContentTemplate&gt; &lt;asp:TextBox runat="server" ID="textBox1" AutoPostBack="true" OnTextChanged="textBox_TextChanged" /&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;br /&gt; &lt;asp:UpdatePanel runat="server" ID="updatePane2"&gt; &lt;ContentTemplate&gt; &lt;asp:TextBox runat="server" ID="textBox2" AutoPostBack="true" OnTextChanged="textBox_TextChanged" /&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;br /&gt; &lt;/div&gt; &lt;/form&gt; &lt;script type="text/javascript"&gt; Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(InitializeRequest); function InitializeRequest(sender, args) { if (args._postBackElement.id == 'textBox1' || args._postBackElement.id == 'textBox2') { document.getElementById('textBox1').disabled = true; document.getElementById('textBox2').disabled = true; } } &lt;/script&gt; </code></pre> <p>I know this isn't exactly what you originally asked for ("is there a way to queue postbacks with UpdatePanel"), but the net effect is that it forces the user to queue up their requests so no more than one is being processed at a time. You can probably amend this to something more elegant too.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload