Home - Forums-.NET - FlyTreeView (ASP.NET) - errorsys.webforms.pagerequestmanagerparsererrorexception !

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

errorsys.webforms.pagerequestmanagerparsererrorexception !
Link Posted: 23-Sep-2007 21:40
Hello,

My fly tree is giving me some trouble when it is used for the first time after loading.  I receive an error message as shown above with extra info about potential problems being \"Response.Write, Response filters, Http Modules and Server Trace\".  I don't explicitly use any of these but obviously components in use may do.

Error info specific to the page is as follows:
\"Error parsing near 'tePanel1|...\" which makes it look as though the asp code has become knackered.  Anyway, this is what the code is doing:

Fly tree outside any panels, within a popup control and panel.  It has checkboxes and the setup in the asp is:
                    IsCheckbox=\"True\" OnNodeEventJavascript=\"nodeEventHandler\" CanBeSelected=\"false\">

The tree is intended to update several tabs with charts and grids and to this end updatepanels containing these controls are used.

Node event handler in asp (javascript):

function nodeEventHandler(treeview, node, eventType, value, parentNode)
{            
               //stuff
               ...
               pageload(checkedNodesArray);
}

function pageload(checkedNodesArray)
{
    // formulate  amessage
    UpdPanelUpdate(message);
    return message
}  

This is where the problem comes from:
function UpdPanelUpdate(id)
{
    var obj = document.getElementById(\"\");
    obj.value=id;
    __doPostBack(\"\",\"\");
}

This causes a page load with a populated textbox, this value is then used to choose some sql and then the controls on the update panel are updated.

NOTE:
This problem only occurs the first time round, subsequent selections on the treeview are fine.
Link Posted: 24-Sep-2007 01:02
So as far as I understand, you see the broken page layout caused by invalid HTML output of FlyTreeView.

Could you provide sample code (ASPX page) so we can test and debug it locally? or send the generated HTML output?


You can upload your files to ftp://download.9rays.net/9r_incoming/
Link Posted: 24-Sep-2007 02:14
Unfortunately FTP access appears to be restricted here.  
Is there an alternative method of sending you the information?
Link Posted: 24-Sep-2007 03:36
Yes, zip and email it to flytreeview.asp@9rays.net. If our incoming mail server blocks the message (it sometimes does not allow zip archives when its content seems \"unsecure\"), then just change extension from .zip to (for example) .zap so it will skip checking its content.
Link Posted: 24-Sep-2007 23:42
I've sent the email as required.  (\".sap\") extension because Windows appeared to recognise .zap as something active.
Link Posted: 25-Sep-2007 00:02
We cannot run your example locally, it references a number of other 3rd party controls and uses SQL to get data.

Anyway, as far as I can see the FlyTreeView control is placed into ASPxPopupControl as a content.
Do you experience the same problems, when you place FlyTreeView outside of this control?
Link Posted: 30-Sep-2007 21:36
Hello again EvgenyT, the FlyTreeView does experience the same problem outside of the popupcontrol.
I think what I'm looking for is a good process for sending a list of checked nodes to the VB page, so that it reloads with a refreshed list.
Ideally I would use a timer to capture when the nodes have stopped being clicked (i.e. half a second) - so when the timer expires, send the current list.  However, the call to \"__do.PostBack\" still causes the error even with a timer.  

I think there must be some sort of initialisation problem, maybe not all the controls are initialised before they are used
Link Posted: 30-Sep-2007 22:10
It seems the page layout you're using breaks flytreeview output (or some other control output).
FlyTreeView renders javascript as well. All I can say is that you need to experiment with your page by removing (one by one) controls that possibly cause the problem.
Link Posted: 01-Oct-2007 03:36
Well, I did a little rooting around in the javascript like you suggested and I noticed that the __doPostBack method was using a rather strange parameter i.e. __doPostBack(\"\",\"\");
Well, after looking at other examples I used just __doPostBack('button','');
and that appears to have solved the problem.

Thanks for your support, the flytree works fine!