How to reload the page control several times on one button click event in C# asp.net -


here given code want do.

                        <asp:button id="button1" runat="server" onclick="button1_click" text="button" />                         <asp:label id="label1" runat="server" text="label"></asp:label>                     </contenttemplate>                 </asp:updatepanel>             </td> 

and .cs file having code this

protected void button1_click(object sender, eventargs e) {       (int = 0; < 10; i++)       {            label1.text = "processing...updating label data:'" + + "'";            updatepanel1.contenttemplatecontainer.controls.add(label1);            updatepanel1.update();             thread.sleep(1000);        }   } 

so want see label value update ui each time when loop changes label value.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -