Update Progress For a web Page that includes File Upload ?

Posted by .Netlearner under ASP.NET AJAX on 11/14/2012 | Points: 10 | Views : 1324 | Status : [Member] | Replies : 1
Hello All,

In my web page i have some textfields and file upload control.It takes no time to upload but after uploading i need to insert data in database.It takes some time.I have to display the progress as "Please wait...In Progress" As we cant have file upload within update progress how this can be done.Please guide me.Thanks in advance


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

<form id="form1" runat="server">

<asp:ScriptManager ID="SM1" runat="server" />
<div style="border:1px solid #c0c0c0;padding:15px;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
Your 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>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
<div style="margin-left:40%;margin-top:10%;position:absolute;background:yellow;color:Red;font-size:30px;text-align:center;padding:5px;"><img src="wait.gif" alt="wait ..."/><br />Please wait ...</div>

In Code Behind:
protected void SubmitData(object sender, EventArgs e)

lblMessage.Text = "Your name is: " + txtBox1.Text;

In the above SubmitData Method Write your insert Code.

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

Login to post response