Protected Sub buttin1_Click(sender As Object, e As EventArgs) Handles button1.Click dim iCount as integer = 0 For each row as datarow in tbl.rows '...do somethig... system.threading.thread.sleep(1500) i+=1 info1.text = "Done " & i & " / " & tbl.rows.count & " rows.< br />" next info1.text &= "Complete." end sub
<asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel runat="server" ID="updatePanel1" UpdateMode="Always"> <ContentTemplate> <asp:Button runat="server" ID="button1" Text="do something" /> <asp:Literal runat="server" ID="info1" /> </ContentTemplate> </asp:UpdatePanel>e
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)