Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to I dynamically show status

Status
Not open for further replies.

AppDev76

Programmer
Jun 8, 2004
65
US
I,
I have an aspx page that on load creates a treeview.
Loading the treeview takes a while and I want to show a message that the treeview is being loaded. Coming from windows forms I tried to do this:

code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Me.IsPostBack = False Then
Me.lblStatus.Visible = True
BuildTree()

End If
Me.lblStatus.Visible = False
End Sub
html:
<form id="Form1" method="post" runat="server">
<mytree:treeview id="TVwMaterial" style="Z-INDEX: 101; LEFT: 5px; POSITION: absolute; TOP: 7px" runat="server" NAME="Treeview1" SelectExpands="True"></mytree:treeview>
<asp:Label id="lblStatus" style="Z-INDEX: 102; LEFT: 10px; POSITION: absolute; TOP: 76px" runat="server" CssClass="gen">Loading ...</asp:Label>
</form>



But I guess I'll have to force a post back for the server control label to become invisible.
But I don't know how to programatically force a postback in the middel of the execution of a sub.

Thanks
 
Welcome to the World Wide Web. It's a long-standing problem. To actually get a true status is well-nigh impossible. What many end up doing is putting up a "Please wait..." message, or an animated gif/graphic to show that the site is indeed doing SOMETHING.

Users understand.



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top