Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am trying to make a useable treeview that has been populated from an XML source:

<asp:TreeView ID="TreeView1" runat="server" DataSourceID="Data">
    <DataBindings>
            <asp:TreeNodeBinding DataMember="City" ValueField="name" TextField="name" SelectAction=None>
            </asp:TreeNodeBinding>
            <asp:TreeNodeBinding DataMember="Device" ValueField="name" TextField="name" SelectAction=None>
            </asp:TreeNodeBinding>
            <asp:TreeNodeBinding DataMember="IP" ValueField="num" TextField="num">
            </asp:TreeNodeBinding>
             <asp:TreeNodeBinding DataMember="Model" ValueField="num" TextField="num" SelectAction=None>
            </asp:TreeNodeBinding>
        </DataBindings>
    </asp:TreeView>
<asp:XmlDataSource ID="Data" DataFile="C:\Data.xml" runat="server"/


I would like to have the IP be a link to open the web interface in a different frame but I am not sure how to control the postback behavior that I see when I run the project.

Can someone please point me in the right direction? I've been reading up on postback but haven't found out how to control a dynamically created treeview item.
Posted
Comments
Sunasara Imdadhusen 20-Feb-11 23:55pm    
Do you want to open window when clicking on IP?

1 solution

Well ideally in a frame on the page, but I'll take that. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900