Click here to Skip to main content
11,639,554 members (65,762 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
Hi sir,
    Tell me the steps to show update progress while uploading file content to sql server database. I have
40,000 records in excel file, i  upload the records into the database, i need to show update progress
while uploading the records into database, its working fine but i cant able to view the update progress.
I attached the code for further details. Kindly give me the solution for this problem.
 

 
Homes.aspx:
**************
 
  <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
<br />
<br />
<br />
 

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
 

    <ContentTemplate>
 
     <table align="center">
    <tr>
        <td>
            <asp:Label ID="Label1" runat="server" Text="Please select the file"></asp:Label>
        </td>
        <td>
            <asp:FileUpload ID="FileUpload1" runat="server" />
        </td>
        <td>
 

 
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td align="center" colspan="3">
                    <%--<asp:GridView ID="GridView1" runat="server">
                    </asp:GridView>--%>
Posted 10-Jun-13 19:55pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

hi i had used progress bar in my website as follow and it works fine

Home.aspx:

<pre lang="css"><style>
.loading
    {
        font-family: Arial;
        font-size: 10pt;
        border: 5px solid #67CFF5;
        width: 200px;
        height: 100px;
        display: none;
        position: fixed;
        background-color: White;
        z-index: 999;
    }
 
    </style>


Home.aspx.cs:


protected void Page_Load(object sender, EventArgs e)
{

if (!IsPostBack)
{
Session["Timesheet"] = "false";
string script = "$(document).ready(function () { $('[id*=BtnId]').click(); });";
ClientScript.RegisterStartupScript(this.GetType(), "click", script, true);
}
}
  Permalink  
v2
Comments
Aysha Patel at 11-Jun-13 2:20am
   
If u have still problem with my code then let me know...
Happy coding :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can get better solutions to your problem on how to Show progress bar using UpdateProgress control in asp.net(C#, VB)
http://www.webcodeexpert.com/2013/05/show-progress-image-using.html[^]
  Permalink  

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

  Print Answers RSS
0 Suvendu Shekhar Giri 330
1 Sergey Alexandrovich Kryukov 259
2 CPallini 177
3 himanshu agarwal 167
4 F-ES Sitecore 160
0 OriginalGriff 9,081
1 Sergey Alexandrovich Kryukov 8,812
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,650
4 F-ES Sitecore 2,548


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 11 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100