A little known IE Web Control Treeview feature
The IE Web Control Treeview has a very annoying problem. Whenever you set the
TreeNodeSrc property to a file name, whether an aspx file
or an xml file, it accesses the file using a separate process
which means that the file cannot be behind any authentication. This
has been the cause for tons of developer headaches and newsgroup
posts, but there is a simple solution which is not immediately apparent (since
it is un-documented).
The TreeNodeSrc is supposed to be set to a file name, but it
can also be set to a string of XML. The treeview control will read through this
string of XML just as if it was a separate file, the string will still need to
conform to the same rules that apply to the file. This means you can
simply build up a string of xml and then set the property using that
string without the need for an extra file.
-James