Thanks for the swift response Steve. We have implemented for comments with
mixed response.
I set access to anonymous for the Type and Node XML files and the Web
Control will parse them and generate a correct browser html page. This
works for me, ONLY if I reference the
xml files in the HTML code itself as:
<iewc:treeview id="TreeView1"
TreeNodeSrc="XMLSafe.xml"
TreeNodeTypeSrc="NodeType.xml" {other attributes here}... />
I fail however when I attempt to use Page_Load using either of:
TreeView1.TreeNodeSrc=Server.MapPath("xmlsafe.xml" );
TreeView1.TreeNodeTypeSrc=Server.MapPath("NodeType .xml");
this.TreeView1.DataBind();
or
TreeView1.TreeNodeSrc="xmlsafe.xml";
TreeView1.TreeNodeTypeSrc="NodeType.xml";
this.TreeView1.DataBind();
In both cases no exception is generated but the output (browser) html page
contains no nodes and no node types! I know the page_event is wired
correctly because I am also coding:
TreeView1.Attributes.Add("onselectedindexchange",T reeView1.ClientID+"_onchan
ge();");
in the page_load event and this line is working as expected.
I must have some other setting wrong? if i use invalid file names for the
xml files I generate no exception?! (I am step debugging through this so I
know the lines are being executed). Is the call to DataBind insufficient?
thanks.
dlr
"Steven Cheng[MSFT]" <v-> wrote in message
news:...
> Hi Dennis,
>
> Welcome to ASPNET newsgroup.
> From your description, it seems that you've encoutered an existing problem
> of the IE webcontrol. When we use the TreeNodeSrc to specify a xml data
> source, we need to configure the xml file (or the entire Virutal DIR) as
> allow Anonymous.
>
> In addition, we can also resolve the problem by specifying the
> "TreeNodeSrc" via physical file path , for example:
>
> private void Page_Load(object sender, System.EventArgs e)
> {
> this.TreeView1.TreeNodeSrc = Server.MapPath("./treebooks.xml");
> this.TreeView1.DataBind();
> }
>
> set the treenodesrc at runtime via code. Hope helps.
>
> Thanks & Regards,
>
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>