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
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