User-417640953 posted
This problem is not occuring when i remove Update Panel. But i want to use Update Panel to show progress bar.
Hi sameer,
Thank you post the issue to our forum.
For this issue, I suggest you not using the UpdatePanel. And using the javascript show progress instead like below.
<head runat="server">
<title></title>
<script>
function ShowProgress() {
document.getElementById("ProgressBar").style.display = "block";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Do-postback" onclick="Button1_Click" OnClientClick="ShowProgress()" />
<div id="ProgressBar" style="display:none;">please wait for.....</div>
</div>
</form>
</body>
code behind:
protected void Button1_Click(object sender, EventArgs e)
{
//test the progress
System.Threading.Thread.Sleep(3000);
}
Hope this helps, thanks.
Best Regards!