Home - Forums-.NET - FlyTreeView (ASP.NET) - How to detect if the session has timed out when expanding

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

How to detect if the session has timed out when expanding
Link Posted: 24-Sep-2007 00:26
Hi!

How do I check if the users session has timed out when the users clicks on the tree to expand it?

Right now the loading message is shown, but I wan't to catch the exception and redirect the user to the login page.

The tree populates nodes on demand and I'am using OnSelectedNodeChangedJavascript.

If I turn on PostBackOnClick everything works great but I then it doesn't look so good.
Link Posted: 24-Sep-2007 00:45
You should probably handle populatefailed client-side node event and redirect user to a desired location.
See OnNodeEventJavascript section at:
http://www.9rays.net/asp.net_2/treeview/miscpages/doc/ClientEvents.aspx