Home - Forums-.NET - FlyTreeView (ASP.NET) - Conflicts with Microsoft ASP.NET Ajax?

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Conflicts with Microsoft ASP.NET Ajax?
Link Posted: 01-Aug-2007 02:18
Hi,

Since I have AJAX-enabled my website I have problems with the FlyContextMenu.
Everthing works fine until the page is refreshed by a postback to the server (does not matter if i do a full post back or just reload one update panel).
After that postback the context menus cannot be found any more.
But when I right-click the page and choose \"View source\", I find the table for the context menus that cannot be found by the clientside script.




... for example... the same HTML-code than before the postback.

Even an empty serverside event-handler without any action (so just a reload of the page is happening, nothing else) ... causes the same problem.

What am I doing wrong?

I know that the FlyTreeview also works with ASP.NET Ajax.
Maybe this causes some conficts!?!?

My \"Ajax part\" just consists of a Scripthandler and 1 Update Panel which doesn't modify anything on the treeviews or context menus.

My web.config (the AJAX enabling) is just the same when you say \"New AJAX-enabled web site\" in Visual Studio 2005.

Does anybody have any ideas, what's the problem here?

Thank you for your help

*greetz*
Andreas
Link Posted: 01-Aug-2007 04:22
Hey there,

forget it, I found the error.
In my web.config I had





This damn smartnavigation feature normally doesn't have any effects in ASP.NET 2.0 because it has been replaced by some other features, but you can still choose the option.
I just kicked it out and now it works without any problems.
Sorry ... wrong alert.
But maybe a useful information

greetz
Link Posted: 01-Aug-2007 08:19
So what is the replacement for smartnavigation?
Link Posted: 01-Aug-2007 20:37
There are 2 features:
- Maintain scroll bar position on postback
- SetFocus

But they do much less than the smartnavigation in 1.1

You can read about it here:
http://forums.asp.net/p/965155/1204983.aspx
or here
http://www.developer.com/net/asp/article.php/10917_3506896_3
Link Posted: 01-Aug-2007 23:28
Thanks for pointing.