Update Progress Bar Time Out

Posted by Srinivas673 under ASP.NET AJAX on 8/23/2012 | Points: 10 | Views : 13197 | Status : [Member] | Replies : 4
When Request is in Process Update Progress Bar Time Out after 90 sec
How To set Time For Update Progress Bar




Responses

Posted by: Siva524 on: 8/23/2012 [Member] Starter | Points: 25

Up
0
Down
use timer control along with progress bar control.
and in the timer event(that is tick event)write thread.sleep() method then you can get your requirement.

Srinivas673, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Srinivas673 on: 11/17/2012 [Member] Starter | Points: 25

Up
0
Down

Can any one Know With Eample


Srinivas673, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhyab on: 11/17/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Example:
<div>

<asp:ScriptManager ID="SM1" runat="server" />
<div style="border:1px solid #c0c0c0;padding:15px;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
Name: <asp:TextBox ID="txtBox1" runat="server" /><br />
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="SubmitData" />
<p><asp:Label ID="lblMessage" runat="server" EnableViewState="false" /></p>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
<div style="margin-left:40%;margin-top:10%;position:absolute;background:yellow;color:Red;font-size:30px;text-align:center;padding:5px;">Please wait ...</div>
</ProgressTemplate>
</asp:UpdateProgress>
</div>

Code Behind:

protected void SubmitData(object sender, EventArgs e)

{
lblMessage.Text = "Your name is: " + txtBox1.Text;
System.Threading.Thread.Sleep(90000);
}


Thanks & Regards

Srinivas673, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhyab on: 11/17/2012 [Member] Starter | Points: 25

Up
0
Down
Please mark as answer if the above example helped you.

Thanks & Regards

Srinivas673, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response