Let me describe the scenario.
I have a page with a treeview on the left side and a diagram (using a 3rd party tool) on the right.
The treeview is built in code behind and is not modified on the client.
The user right-clicks on a shape on the diagram and selects an item from a context menu.
This causes a radWindow to open. When the user clicks on Save, a web service is called to update the database.
The window is closed and everything is fine.
However, if the user opens the radWindow and clicks Save four times (or more) and then clicks on a button to navigate to the next diagram, an error occurs:
System.ArgumentOutOfRangeException: Index was out of range
I have put a break in my code behind where the error is occurring and it appears that the treeview is suddenly empty - no nodes!!
There is nowhere in the scenario I presented above where the treeview is touched in any way, so I'm at a loss as to how it became empty.
Could this possibly be session related? I'm not familiar enough with web services (using an asmx file) to know whether the web service could be affecting the same session storage that is used by the trreeview.
Is there any other reason that the treeview would suddenly be empty?
I can post code snippets, but I'm afraid that might be overwhelming for this forum.
Any ideas? Suggestions for debugging?
Thanks in advance.