Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've had the same issue. There is no easy way to tell the updateProgress to render inline. You would be better off to roll your own updateProgress element. You can add a beginRequest listener and endRequest listener to show and hide the element you want to display inline. Here is simple page which shows how to do it:</p> <p><strong>aspx</strong></p> <pre><code>&lt;form id="form1" runat="server"&gt; &lt;div&gt; &lt;asp:ScriptManager ID="sm" runat="server"&gt;&lt;/asp:ScriptManager&gt; &lt;asp:UpdatePanel runat="server" ID="up1" UpdateMode="Always"&gt; &lt;ContentTemplate&gt; &lt;asp:Label ID="lblTest" runat="server"&gt;&lt;/asp:Label&gt; &lt;asp:Button ID="btnTest" runat="server" Text="Test" OnClick="btnTest_OnClick" /&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;img id="loadingImg" src="../../../images/loading.gif" style="display:none;"/&gt;&lt;span&gt;Some Inline text&lt;/span&gt; &lt;script&gt; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(function(sender, args) { if (args.get_postBackElement().id == "btnTest") { document.getElementById("loadingImg").style.display = "inline"; } }); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(sender, args) { if (document.getElementById("loadingImg").style.display != "none") { document.getElementById("loadingImg").style.display = "none"; } }); &lt;/script&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p><strong>cs</strong></p> <pre><code>public partial class updateProgressTest : System.Web.UI.Page { protected void btnTest_OnClick(object sender, EventArgs e) { System.Threading.Thread.Sleep(1000); this.lblTest.Text = "I was changed on the server! Yay!"; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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