K
kaczmar2
I have an ASP.NET page written in VB.NET that has a label:
<asp:Label runat="server" ID="lblStatus"
CssClass="LabelTxt"></asp:Label>
In my code behind, I am running some stored procedures and a DTS
package. Since the queries and the DTS package take a few seconds to
run, I want to update the status label after each step has completed:
lblStatus.Text = "Processing..."
' Process stored proc
lblStatus.Text &= "Done!<br>"
' Process DTS package
lblStatus.Text &= "Processing DTS Package...<br>"
' etc.
I know that I can do this if I do not use code behind by just using
Response.Write and Response.Flush() statements, as I would in classic
ASP.
However, is there a way on the server side to raise an event and update
the label accordingly? Any pointers would be appreciated.
Christian
<asp:Label runat="server" ID="lblStatus"
CssClass="LabelTxt"></asp:Label>
In my code behind, I am running some stored procedures and a DTS
package. Since the queries and the DTS package take a few seconds to
run, I want to update the status label after each step has completed:
lblStatus.Text = "Processing..."
' Process stored proc
lblStatus.Text &= "Done!<br>"
' Process DTS package
lblStatus.Text &= "Processing DTS Package...<br>"
' etc.
I know that I can do this if I do not use code behind by just using
Response.Write and Response.Flush() statements, as I would in classic
ASP.
However, is there a way on the server side to raise an event and update
the label accordingly? Any pointers would be appreciated.
Christian