Hi!
First of all it's my first time posting, so I would like to greet everyone in the house! :)
Im having a problem. I tried to google it but i found no similar issue...
I am using on a webpage a TreeView with a binding to a xml file.
I have never had problems, but recently a new issue is ocurring. When the xml file is small (say, up to 50KB) everything goes fine. But when the xml file is slightly bigger the page simply doesnt load. (the IE starts processing for a looooooooooooong time but the page is never loaded).
As far as I checked the xml structure being loaded is correct.
As long as I get no error message, I would like to know if someone had a similar issue and/or knows which could be the root of this problem.
The code running is:
(.aspx code)<table> <tr> <td> <asp:XmlDataSource ID="MySource" runat="server"/> <asp:TreeView ID="TreeView1" DataSourceId="MySource" MaxDataBindDepth="10" runat="server" ShowLines="True" ShowCheckBoxes="Leaf" Width="153px" ExpandDepth="0" PopulateNodesFromClient="False" NodeIndent="25" Font-Names="Verdana"> <DataBindings> <asp:TreeNodeBinding DataMember="empresa" TextField="Name" SelectAction="None"/> <asp:TreeNodeBinding DataMember="local" TextField="Name" SelectAction="None" /> <asp:TreeNodeBinding DataMember="oe" TextField="Name" SelectAction="None" /> <asp:TreeNodeBinding DataMember="service" TextField="Name" SelectAction="None"/> <asp:TreeNodeBinding DataMember="direct" TextField="Name" SelectAction="None"/> <asp:TreeNodeBinding DataMember="indirect" TextField="Name" SelectAction="None"/> <asp:TreeNodeBinding DataMember="item" TextField="Name" SelectAction="None" /> </DataBindings> <SelectedNodeStyle Font-Bold="False" /> <LeafNodeStyle Font-Bold="False" Font-Overline="False" Font-Underline="True" /> </asp:TreeView> </td> </tr></table>
(.cs code)string IntranetId = getIntranetUserId();MySource.DataFile = "~/App_Data/" + IntranetId + ".xml"; //this gets the correct xml file with the expected format
Thanks a lot for your help!
Regards,Pedro