Home Ask Login Register

Developers Planet

Your answer is one click away!

Faraz February 2016

Update Progress Bar While Inserting Data Into Database

foreach (DataRow row in Employee.Rows)
    //insert record into database. when record entered i need to update the progress 
    //bar on client side.

Please help me to solve my Problem..

Thanks In Advance


Navy February 2016

Take your Insert Button in Update Panel and assign Update Progress to your Update Panel as shown below.

        <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel" runat="server">
                    <asp:Image ID="Image" runat="server" ImageAlign="Middle" ImageUrl="Images/loading.gif" />
        <asp:UpdatePanel ID="UpdatePanel" UpdateMode="Conditional" runat="server">
                <asp:Button ID="Button1" runat="server" Text="Button" />

Post Status

Asked in February 2016
Viewed 3,550 times
Voted 14
Answered 1 times


Leave an answer

Quote of the day: live life