I want to show progress in my webpart while showing images. Here is my code in .ascx file
<asp:UpdateProgress runat="server" id="PageUpdateProgress">
<ProgressTemplate>
Loading...
</ProgressTemplate>
</asp:UpdateProgress>
<asp:updatepanel runat= "server>
<div>
<section id="ideas" class="container">
<div id="divTest" runat="server" >
</div>
<div>
<div>
<a href="#" role="button" id="btnShow" runat="server" OnServerClick="btnShow_Click">Get data</a>
</div>
</div>
</section>
</asp:UpdatePanel>
In my click even i tried
protected void btnShow_Click(object sender, EventArgs e)
{
if (spItems.count!= 0) {
System.Threading.Thread.Sleep(5000);
for (i = 0; i< imageCount; i++){
// logic to show images
}
}
}
But nothing shows up. Also how to stop progress bar displaying when my For loop ends