asp.net - UpdateProgress not working on initial page load -


What should I do to create my update performance in my updates panel to show on the initial page load? It works fine after sorting the grid in your page in my UpdatePanel, etc. but not on the implicit page load. What can i do Here is a sample of my code. I do not have any code for this code so that there is a problem I'm not sure about.

  and ATP: Update Display ID = "Update Progress" Associated UpdatePlan = "Update Panel 1" Runat = "Server" & gt; & Lt; ProgressTemplate & gt; & Lt; Div id = "postback-loader" & gt; & Lt; Img src = "Images / Ajax-loader-blue .gif" style = "margin: 11px auto; display: block;" / & Gt; & Lt; Br / & gt; & Lt; Asp: Label ID = "Label1" runat = "server" text = "computer loading ..." width = "170px" & gt; & Lt; / Asp: Label & gt; & Lt; / Div & gt; & Lt; / ProgressTemplate & gt; & Lt; / ASP: UpdateProgress & gt;  

You have to return to the control page and then partial postback to update To get your postback started, the content of your update panel is using jQuery.

Markup

  & lt; Script src = "scripts / Jquery-1.4.1.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {__do ​​postback ('& lt;% = UpdatePanel1.ClientID% & gt;';)}); & Lt; / Script & gt; & Lt; Form id = "form1" runat = "server" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; Asp: ScriptManager id = "ScriptManager1" runat = "server" & gt; & Lt; / ASP: ScriptManager & gt; & Lt; Asp: UpdatePanel ID = "Update Pencil 1" Runat = "Server" onload = "Update Panel 1_load" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Text Box ID = "Text Box 1" Runat = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt; & Lt; Asp: UpdateProgress ID = "UpdateProgress1" runat = "Server" Associated Update PanilID = "Update Panel 1" & gt; & Lt; ProgressTemplate & gt; & Lt; Div id = "postback-loader" & gt; & Lt; Img src = "Images / Ajax-loader-blue .gif" style = "margin: 11px auto; display: block;" / & Gt; & Lt; Br / & gt; & Lt; Asp: Label ID = "Label1" runat = "server" text = "computer loading ..." width = "170px" & gt; & Lt; / Asp: Label & gt; & Lt; / Div & gt; & Lt; / ProgressTemplate & gt; & Lt; / ASP: UpdateProgress & gt; & Lt; / Form & gt; Code Back   
  Protected Zero Page_load (Object Sender, EventArgs e) {if (IsPostBack! TextBox1.Text = "First Load"; } Secure Zero UpdatePanel1_Load (Object Sender, EventArgs E) {If (IsPostBack) {Thread. Sleep (10000); TextBox1.Text = "Finish"; }}  

Comments