Click here to Skip to main content
15,664,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am migrating dotnet application for "Data upload" from framework 1.1 to 3.5 ,
I have used progress bar on .aspx page which will get displayed while actual data uploading.

But it is not working.
Two cases are there -
1] If I use progress bar or any other server control like label etc. on page then my application stops working.

2] If I don't use these things it works fine.

Here is code snippet for .aspx page:-
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePnl" runat="server">
<asp:PostBackTrigger ControlID="Btnupload" /> 
<table id="updateTbl">
<td colspan="2">
<input id="domain" type="hidden" name="domain"  runat="server" />
<input id="targetPath" type="hidden" name="targetPath"  runat="server" />
<input id="uploadID" type="hidden" name="uploadID"  runat="server" />
<input id="Values" type="hidden" name="Values"  runat="server" />
<input id="result" type="hidden" name="result"  runat="server" />
<input id="control" type="hidden" name="control"  runat="server" />
<asp:Label ID="lblSelect" Text="Select File" runat="server">
<asp:FileUpload id="FileUploadControl" runat="server" />
<td colspan="2" align="right">
<asp:Button ID="Btnupload" Text="Upload" runat="server" onclick="upload_Click" OnClientClick="ShowProgress();"/>
<asp:UpdateProgress ID="ProgressBar" runat="server" AssociatedUpdatePanelID="UpdatePnl">
<div> <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/progress.gif" ImageAlign="Middle" /> </div>


java script function is here :-
<script type="text/javascript">
    function ShowProgress()
        document.getElementById('<% Response.Write(ProgressBar.ClientID); %>').style.display = "inline";

I have used web service to upload data into database.
Can you please guide me on this?
Updated 22-Oct-13 19:42pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900