Home - Forums-.NET - FlyTreeView (ASP.NET) - FlyTreeView for ASP.NET 2.0 - FileSystemNodes - GetFiles

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

FlyTreeView for ASP.NET 2.0 - FileSystemNodes - GetFiles
Link Posted: 01-Mar-2007 09:24
Well I parsed the string to get the virtual path which works on my localhost. When I move to the server, the treeview loads but I get a error:

Error when performing server call back:
There was an error in the  callback.56|/weWaw.......


any ideas?[/img]
Link Posted: 01-Mar-2007 09:51
FlyTreeView won't populate.  When you click any node you get the

\"Error when performing server call back:...\"

Help!
Link Posted: 01-Mar-2007 09:57
Running the page From the server the message is a little different.

Error when performing server call back;
StartIndex cannot be less than zero.

Parameter name: startIndex56|/wEWAasdfasdfasdfasdfsadf


Is this your error?
Link Posted: 01-Mar-2007 11:15
I just want to get the Virtual Web Path for each node.

~/subdir/
~/images/
~/App_Code/

How about a working example of FlytreeView used as a navigation tool in a web site?  

Should this be that hard?  help!
Link Posted: 01-Mar-2007 19:25
The NavigateUrl does not load anything into treeview. It just navigates browser window to a desired location (NavigateUrl).

If you need to convert virtual path to physical one, you should use
Server.MapPath(virtualPath) method.

But are you sure that you need to use NavigateUrl?
Link Posted: 01-Mar-2007 19:28
[quote="mdunn6"]Running the page From the server the message is a little different.

Error when performing server call back;
StartIndex cannot be less than zero.

Parameter name: startIndex56|/wEWAasdfasdfasdfasdfsadf


Is this your error?

You can always start your IDE (Visual Studio) in a Debug mode and get Call Stack for the exception, where you can see the source of the problem.
Link Posted: 01-Mar-2007 19:29
[quote="mdunn6"]FlyTreeView won't populate.  When you click any node you get the

"Error when performing server call back:..."

Help!


Please debug the page and you can get the source of the problem.
It could be treeview or could be some other code in your page that raises exception.
Link Posted: 01-Mar-2007 19:38
[quote="mdunn6"]
How about a working example of FlytreeView used as a navigation tool in a web site?  

Should this be that hard?  help!

This is not so hard. But what kind of navigation do you need?
From my point of view you do not need to restore complete state of treeview with every visited page, but just need to expand and select node that refers to currently open page.
But if you really need to save and restore treeview state while browsing your site, then you also need that ALL links in your web site to be replaced with linkbuttons that raise server events and give ability to save and pass treeview state as a parameter. But I repeat, that I believe this is not a good design. The first approach when you just select node referring open page is more preferable (from my point of view).
Link Posted: 02-Mar-2007 03:45
Let me start over.

The flytreeview example class FileSystemNodes populates the flytreeview with directories.  That's great.  I wanted the class to also populate the nodes with files as well, just like explorer.

For the file nodes I want to add the navigateURL property.

My original question was how to get this to work on a Virtual Directory on a web site.  I just wanted to see an example.

if I have a virtural directory on a website called ~/Test/
and some pages in this directory,
~/Test/testpage1.aspx
~/Test/Testpage2.aspx
~/Test/Testpage3.aspx

How do I populate flytreeview with the parent nodes ~/Test and the children nodes,

testpage1.aspx
testpage2.aspx
testpage3.aspx

????
Link Posted: 02-Mar-2007 05:26
1. Do you need to create nodes under the Test folder in treeview?

like
[-] Test
   testpage1.aspx
   testpage2.aspx
   testpage3.aspx


2. Every node should have NavigateUrl set to testpage1.aspx (testpage2.aspx, and so on) ?

3. Any page in treeview uses the same master page containing treeview and
should maintain treeview state when you navigate to it ?


I can create a small example that implements this functionality for you.