asp.net - Update Progress Bar While Inserting Data Into Database -


foreach (datarow row in employee.rows) {     //insert record database. when record entered need update progress      //bar on client side. } 

how solve problem?

take insert button in update panel , assign update progress update panel shown below.

        <asp:updateprogress id="updateprogress1" associatedupdatepanelid="updatepanel" runat="server">             <progresstemplate>                 <div>                     <asp:image id="image" runat="server" imagealign="middle" imageurl="images/loading.gif" />                 </div>             </progresstemplate>         </asp:updateprogress>         <asp:updatepanel id="updatepanel" updatemode="conditional" runat="server">             <contenttemplate>                 <asp:button id="button1" runat="server" text="button" />             </contenttemplate>         </asp:updatepanel> 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -